TI E2E Community
Multimedia Software Codecs
Multimedia Software Codecs forum
img_erode_bin in IMGLIB2
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.
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.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.