check a point whether it is inside edge of edge matrix

1 visualizzazione (ultimi 30 giorni)
Hi
I am detecting edges in the rectangular images using BW = edge(I), now I want to ckeck few set of points which are inside a region bounded by the edges. Please let me know if there is any such method in MATLAB.

Risposte (2)

Amit Kumar
Amit Kumar il 18 Gen 2021
Dear Mr. Kalyan, thanks for your interest in my problem.
Please see the attached jpeg images for colored object & edges. Edges.jpeg shows edges of objects and I want to locate points which are inside the region bounded by edges.
My original objective was to to replace all the pixel values (belonging to one object ) with the average/max value of pixels of the corresponding object and keep all other pixels as it is, just to get single rgb color for each objects. I know I can use many filtration methos (imfilter etc.) or averaging methods to clean the image but those things are creating some other problems.
But by locating all the pixels which are bounded by the edges and setting those pixel's values by the values of most of the pixels corresponding to the object will definitely solve my problem.

Amit Kumar
Amit Kumar il 18 Gen 2021
Hi I had attached wrong edges.jpeg image please see in the correct attached image

Community Treasure Hunt

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

Start Hunting!

Translated by