PixelID/Pixel Value of Specific Point in Image?

1 view (last 30 days)
How do I find the pixelID (pixel value from pixellist) of the image at specific (x pixels, y pixels) point ?
I would like it to be automatic, requiring NO manual interaction with the figure required.

Answers (1)

Image Analyst
Image Analyst on 15 Jun 2019
You could use meshgrid() to get the x,y locations, and then use abinary image to mask out the ROI you want. Attach your image and your binary image also, that shows the foreground and background.

Categories

Find more on Read, Write, and Modify Image in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!