I have a binary image in which there is only one nonzero region.How I find the leftmost and rightmost white pixel and then connect them by a line.
MATLAB: How to find the leftmost and rightmost white pixel in a binary image in Matlab
image processingImage Processing Toolboximage segmentationMATLAB
Best Answer