get data points of the contoured image [message #93686] |
Thu, 29 September 2016 22:39  |
gunvicsin11
Messages: 93 Registered: November 2012
|
Member |
|
|
Hi all,
I have two images
imagea and imageb
I am contouring image b on image a
That is I did
plot_image,imagea
cgcontour,imageb,/over,color=250
now i want the data points of only the contoured region of the imagea. Please let me know if you have any idea.
thanks
|
|
|
Re: get data points of the contoured image [message #93687 is a reply to message #93686] |
Fri, 30 September 2016 02:43  |
Markus Schmassmann
Messages: 129 Registered: April 2016
|
Senior Member |
|
|
On 09/30/2016 07:39 AM, sid wrote:
> I have two images
> imagea and imageb
>
> I am contouring image b on image a
>
> That is I did
>
> plot_image,imagea
> cgcontour,imageb,/over,color=250
>
> now i want the data points of only the contoured region of the imagea. Please let me know if you have any idea.
plot_image, imageA
cgcontour, imageB, /over, color=250, levels=[10,20,30]
imageA[where(imageB ge 10)]
You will have to choose your levels depending on the values of the
pixels in imageB.
How you can do it without manually specifying the levels i don't know.
i hope this helps, Markus
|
|
|