how to Remove pixels at the marker locations from A binary image?
Show older comments

can any one give me an idea please.
help is much appreciated
thank you.
Answers (1)
Image Analyst
on 9 Jan 2014
Edited: Image Analyst
on 9 Jan 2014
Just go down your list setting those pixels to false
for k = 1 : length(rows)
binaryImage(rows(k), columns(k)) = false;
end
where rows and columns are arrays with the locations of the red crosses.
11 Comments
Image Analyst
on 9 Jan 2014
It is "mentioned previously." Otherwise you would not have been able to draw the red crosses. When you did this:
plot(columns, rows, 'r+', 'MarkerSize', 15);
you must have had them. Otherwise tell me how the red crosses GOT there.
mika
on 10 Jan 2014
Edited: Image Analyst
on 10 Jan 2014
Image Analyst
on 10 Jan 2014
Can you upload your image I.png. Also, why do you have a loop over pId inside a loop over pId??? Make the inner loop have some other iterator, like k. Also, you didn't create binaryImage. Where is the image that is the backgrounds and branches?
Image Analyst
on 10 Jan 2014
Where is i.png? The binary image is that blue and white thing - with the blue branches on the white background. Also, what is "A"? You call spy(A) but I don't see where A is defined or used other than there. I have doubt whether that code will even run and produce the image you gave.
mika
on 10 Jan 2014
Image Analyst
on 10 Jan 2014
I'd have to download 4 things (image, your code, squelette, and some other code that it uses), and that's asking a lot. Maybe this weekend if I find the time.
mika
on 10 Jan 2014
mika
on 20 Jan 2014
Image Analyst
on 20 Jan 2014
I'm most likely not going to be able to carve enough time out of my day to do all that for you. Can't you find anyone else that you work with to help you?
Categories
Find more on MATLAB 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!