Azzera filtri
Azzera filtri

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.

2 visualizzazioni (ultimi 30 giorni)
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 Commento
Image Analyst
Image Analyst il 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.

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 19 Apr 2015
Here's a full blown demo in your other question: http://www.mathworks.com/matlabcentral/answers/210272#answer_175817

Categorie

Scopri di più su Image Processing and Computer Vision in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by