-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Added module for Ni-Black thresholding #181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You probably forgot to add the adapted header file to your PR and therefore it crashes. Prototypes of your functions need to be in the public part of the module namespace.
|
@StevenPuttemans : Working on that. |
|
👍 |
|
@StevenPuttemans : Added function prototype. Could you review this? |
|
I do not have review powers, but I can take a look at it tomorrow! |
|
Sure! Thanks a lot 👍 |
|
@samyak-268, thanks a lot! Can you please add some doxygen comments with the function and parameter description? |
|
@vpisarev : Sure, will be doing that very soon. |
|
@vpisarev I added some doxygen comments along with the code. |
|
@vpisarev @StevenPuttemans : I was thinking of adding some sample/tutorial code for the Niblack module. Should I send a fresh PR for that or updating this one would be fine? |
|
O simply include the sample here! |
Added doxygen comments and parameter descriptions. Added sample code demonstrating Niblack thresholding.
|
@StevenPuttemans @vpisarev Updated PR with the following changes:
Adding the sample made me realize that I was missing a |
|
@samyak-268, thanks! May I ask you to do 2 more things:
|
|
@vpisarev : Sure. I am a little busy for the next few days. Will look into this as soon as I find time. Hope that's all right. |
|
ok, I have yet another request. This seems to be just one relatively small function. Can you please put it to ximgproc (extended/advanced image processing) instead of creating a whole new module? |
|
Coming back to this PR after quite a long time! @vpisarev : I have changed the type of |
All Niblack related code now resides inside ximgproc and not as a separate new module.
|
@StevenPuttemans : Included everything within |
|
Seems good to me, but you will need acceptance of @vpisarev |
|
Hey! Just a gentle reminder. It's been quite a while, anything that needs to be done from my end in regards to this PR? Thanks! |
|
@samyak-268 I am afraid not. Seeing that I know of PR's waiting since June ... I want to ask you to wait at least a little bit more :) Ow and you could merge the 3 commits into 1, to facilitate the merging faster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to add image conversion to grayscale (IMREAD_GRAYSCALE flag), otherwise the exception will be thrown here.
|
@mshabunin : A little busy for a few days. I'll look into your comments soon. Thanks! |
|
I have written some statistical threshold functions some time ago from this paper http://www.math-info.univ-paris5.fr/~vincent/articles/DRR_nick_binarization_09.pdf . I have never really used this, but the first impression looked good. Perhabs you can use this for your implementation. |
|
thanks! let's put it in 👍 |

This is in response to the feature request: 4024 and is same as PR.