The task is straightforward. I want to select a certain region of an
image and plot, for example, the distribution of pixel values within
that region. Therefore, I want to have the pixels coordinates so that I
can select those pixel to get their values.
What I am doing now is to use canvas to di
Are you talking about making, say, a clickable image-map ..?
Or perhaps semantic regions? [1]
I guess what I'm wondering is:
* Why do you need to get all of the pixel coordinates within the region
(within the shape,)
* ...and: is there an easier way to do what you are wanting to do?
Thanks for your reply, Lion.
What I want to do is to select a region of interest (ROI) in a given
image. I can display the image in a canvas widget and use
canvas.create_#object#() method to generate an ROI on the screen.
However, I could not find a way to get all pixel coordinates inside the
ROI
I'm not sure what you mean, but perhaps you are looking for:
canvas.find_enclosed(x1, y1, x2, y2) => [objID, objID, ...] completely
enclosed
canvas.find_overlapping(x1, y1, x2, y2) => [objID, objID, ...] sharing at
least 1 point
..?
On Mon, Jun 20, 2011 at 7:59 PM, wrote:
> Hi ther