Azzera filtri
Azzera filtri

How do find edge parameters after finding edge using edge detection algorithms in matlab??

2 visualizzazioni (ultimi 30 giorni)
Lets consider we have an image of an eye. we have used edge detection algorithm and found edge of the iris. Now I just want to make the background which is behind the edge of iris as dark(0) and within edge as bright(1). How can we get the edge parameters?

Risposte (1)

Shreeya
Shreeya il 22 Feb 2024
According to the use case specified by you, the edge of the iris seems like a connected component, in refernce to which the background and foreground need to be seperated. The regionprops function in MATLAB can be used for this. The "FilledImage" input property fills in all the pixles inside the connected component. You can learn more about the function using the link below:

Community Treasure Hunt

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

Start Hunting!

Translated by