-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
introduce ImageBinarization.jl and ImageContrastAdjustment.jl into Images.jl #841
Comments
I would like to implement a few more algorithms in both packages and then perhaps submit these packages to |
If we re-export the contrast adjustment functionality from |
Regardless of CI pressure, the only problem is those tests (if hosted in Images.jl) are very likely to be outdated soon. Not only tests, but documentation also has the same problem. And the current status of Images.jl as far as I've seen is to do whatever choice here (or even without tests here); many test codes in Images.jl is becoming legacy.
This can be a good choice and I think this is what we can promise so far without too many efforts. (P.S. The current API we use in ImageBinarization doesn't take executing context (e.g., multi-threads, GPU/CPU) into consideration yet.) As complementary to this option, I'm trying to set up a "syncing" functionality using the power of git submodules in #843 to tackle the same issue for documentation, and if that works well I'm planning to do the same thing for tests. |
Given that there has been a burst of activity focused on cleaning up the codebase, I would like to carve out some time to finish introducing ImageContrastAdjustment, ImageBinarization and ideally also ImageEdgeDetection into Images. Both the ImageContrastAdjustment and ImageEdgeDetection package would like to use the |
ImageCore sounds good to me since |
It is indeed a very thin type. Under the hood, I would just dispatch to StatsBase.percentile in the actual packages. |
Closed by #1030 |
A large part of legacy codes in Images.jl (
exposure.jl
andalgorithm.jl
)are for histogram and binarization. SinceImageBinarization.jl
becomes stable now, we could@reexport ImageBinarization
and do some pruning work.It's quite difficult to determine which part of codes are legacy and can be safely deleted, this issue is used to track the list and make discussions.
Some functions I've identified (and there're more):
otsu_threshold
in favor ofImageBinarization.Otsu
yen_threshold
in favor ofImageBinarization.Yen
imhist
,build_histogram
in favor ofImageContrastAdjustment.build_histogram
adjust_histogram
,adjust_histogram!
in favor ofImageContrastAdjustment.adjust_histogram
@zygmuntszpak it would be great if you can give some help 😄
The text was updated successfully, but these errors were encountered: