comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » get data points of the contoured image
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
get data points of the contoured image [message #93686] Thu, 29 September 2016 22:39 Go to next message
gunvicsin11 is currently offline  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 Go to previous message
Markus Schmassmann is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Contour labels in IDL 8.0
Next Topic: IDL-Python bridge with GDAL/OGR

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:29:53 PDT 2025

Total time taken to generate the page: 0.00429 seconds