How can I get different propierties in a certain region an image?

I am trying to do a program wich we can select one or more region of an image (gray scale image) and, after process that/these region (to remove noise or change contrast), we can get different properties (like area, pixel value...). I have managed to select differents regions in an image and remove noise/change contrast working with 'roifilt2' and different binary mask, and I did a function which give me differents properties of a complete image, but when I try to apply this function to a particulari region of the image, I don't know I can do it. How can I use my own function with one or more regions of my image?

Answers (1)

What function did you run that gave you the different properties? Was it regionprops() - because that's the main function in the Image Processing Toolbox that does that. See my Image Segmentation Tutorial for a demonstration: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

1 Comment

yes, I am working with regionprops() too, but... if I want to use this function in only one (or two) region of my image, how can I do?? I have images like this and I can choose two differents regions (in this case, because I want study the two points of light) and process (remove noise and change contrast) only these region. How can I use regionprops()or other function for only one region? For example if I only want to study one point of light of this imagine

Sign in to comment.

Categories

Asked:

on 13 Nov 2013

Edited:

on 13 Nov 2013

Community Treasure Hunt

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

Start Hunting!