Can anyone tell me how to convert an binary image using 1 pixel/byte to something that can be used by img_[erode|dilate]_bin which requires 8 pixels/byte. I'm at a loss here and would much rather use the library call than my own code.
Thanks
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Can anyone tell me how to convert an binary image using 1 pixel/byte to something that can be used by img_[erode|dilate]_bin which requires 8 pixels/byte. I'm at a loss here and would much rather use the library call than my own code.
Thanks
Have you found a solution to this issue, or did you determine a different path?
Is this for offline conversion, or a part of the application that needs to perform real-time?
Is your original image greyscale, or does the 1 pixel/byte really just take on one of two values, 0x00 and 0x01?
1) Have you found a solution to this issue, or did you determine a different path?
Still no solution
2) Is this for offline conversion, or a part of the application that needs to perform real-time?
this is for something that runs in real-time
3) Is your original image greyscale, or does the 1 pixel/byte really just take on one of two values, 0x00 and 0x01?
The original image is currently in grayscale with values of either 0 or 255( but could be any two values).
erode/dilate only takes in binary image. So your input is gray scale, you need do some kinda thresholding or detection to obtain a binary image first.