Equally Distributed Grid Points of A Region

11 vues (au cours des 30 derniers jours)
Hg
Hg le 8 Juin 2015
Commenté : Hg le 8 Juin 2015
After segmentation, I found the boundary of a region with:
k = boundary(x,y)
How do I set equally distributed grid points within the boundary of the region? (see image)

Réponses (1)

Image Analyst
Image Analyst le 8 Juin 2015
You said "I found the boundary of a region" so you already have the region. Then you said "How do I set equally distributed grid points within the boundary of the region?" Well, like I said, you already have the region - it's in a binary image, and as you know, a binary image has equally distributed grid points. So you're done . You already have the "grid" - it's your original binary image.
  3 commentaires
Image Analyst
Image Analyst le 8 Juin 2015
You already have those too. They're in the same image. I don't know what you want. Can you explain it better? Do you just want to subsample ?
mCoarse = grayImage(1:n:end, 1:n:end);
Do you want the rows and columns ?
[rows, columns] = find(binaryImage);
??? Please give a small example because I have no idea what you want as an output.
Hg
Hg le 8 Juin 2015
I want to check the pixel value of a blob in an image(I) but instead of getting all the pixels within the blob region, I want to read only the grid points. So the output that I want is the (x,y) coordinate of the grid points in the blob.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by