how can use imfill for an image to give me a same result every time?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
sara
am 5 Sep. 2014
Kommentiert: Image Analyst
am 5 Sep. 2014
Hi I want to imfill an image.I want to use imfill to give me a Same result every time
but when I use imfill it wants me to select some points on this image and it Causes Different result.
Is there any way for this to give me a same result every time?
0 Kommentare
Akzeptierte Antwort
Matt J
am 5 Sep. 2014
Bearbeitet: Matt J
am 5 Sep. 2014
BW2 = imfill(BW)
[BW2,locations] = imfill(BW)
BW2 = imfill(BW,locations)
BW2 = imfill(BW,'holes')
I2 = imfill(I)
BW2 = imfill(BW,locations,conn)
5 Kommentare
Image Analyst
am 5 Sep. 2014
That doesn't make sense. There is an image on disk, and then a bunch of images in memory. For you to have even gotten to a point in your code where you've created a BW variable, you must have already successfully read in your image from the file in your folder into a variable in your program. Then you thresholded it to get BW - BW is in your program memory, not in the folder. So that could not have been the problem.
Weitere Antworten (0)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!