I want to find white pixel, from fill the from bottom to top. Once the white pixels is found, I want to fill the next (same columns,row++) with all black. I have BW image using Sobel Edge Detection.
4 views (last 30 days)
Show older comments
1. From the bottom left of the pixel(first column), I want to find the edge pixel (white pixel=0)
[rows, columns]=size[BW];
% Output image output = false(rows, columns); % Initialize
for col = 1 : columns
lastRow = find(BW==0);
new_value=(row+1,col)==1;
2. I got stuck here. Once I find the white pixel from (first column,last row), as a result, I want to fill the next (row++) as all black pixels. Then move to the (second column, last row) with the same situation.
1 Comment
Image Analyst
on 3 Apr 2015
I'm not sure how this differs from the need you asked in your other question. As far as I can tell, my answer will the same as http://www.mathworks.com/matlabcentral/answers/195861#answer_173774. If that is different, then please do a better job of explaining why that code won't work here.
Answers (1)
Image Analyst
on 19 Apr 2015
Here's a full blown demo in your other question: http://www.mathworks.com/matlabcentral/answers/210272#answer_175817
0 Comments
See Also
Categories
Find more on Image Processing and Computer Vision in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!