Filter löschen
Filter löschen

finding the coordinates of points with maximum intensity

2 Ansichten (letzte 30 Tage)
sandeep
sandeep am 16 Okt. 2014
Kommentiert: sandeep am 6 Nov. 2014
i have a image file of a welded metal in jpg format. In the image ,the defect in welding appears as an object having maximum intensity.I need a code that can convert the coordinates having intensity above a certain given threshold to '1' and all other points below threshold to '0'. please help. thanks

Akzeptierte Antwort

Mohammad Abouali
Mohammad Abouali am 16 Okt. 2014
Bearbeitet: Mohammad Abouali am 16 Okt. 2014
If "I" is your intensity image and your threshold is stored in "thresh" pretty much all you need to do is:
mask= I>Thresh
Mask would have 1 for every pixel that has the intensity more than the threshold and the rest would be zero.
  16 Kommentare
Image Analyst
Image Analyst am 6 Nov. 2014
This (color tracking) seems like enough of a different question that it should be on its own, rather than as part of this one on thresholding, which has already been marked as solved. Please make a new question and post an image.
sandeep
sandeep am 6 Nov. 2014
ok,i have made a different question for this. Thanks

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (1)

Image Analyst
Image Analyst am 16 Okt. 2014
This is just what my Image Segmentation Tutorial does. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862 Then it goes beyond that - it also finds centroid, area, etc. and crops out the regions. Adapt it as needed.
  3 Kommentare
Image Analyst
Image Analyst am 16 Okt. 2014
You can click on the Vote triangle under the user's avatar. Thanks!
Mohammad Abouali
Mohammad Abouali am 16 Okt. 2014
Nice. I never saw that before.

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by