Problems with contour function [message #14117] |
Thu, 21 January 1999 00:00 |
Christophe Marque
Messages: 11 Registered: January 1999
|
Junior Member |
|
|
Hi,
I have some troubles in using function contour.
I want to contour isophots at one level (255 for example).
The problem occurs when I have two contours, one included in the outer,
without any contact. The screen display is good. So I want to save it in
a file, using:
CONTOUR, hole_img, LEVELS=[255], PATH_FILENAME='contour.tmp'
When I read the file, and display it, using the plot function, the inner
contour is now out of the previous outer contour!
I defined a structure such as:
C_H={CONTOUR_HEADER, TYPE:0B, HIGH:0B, LEVEL:0,NUM:0L, VALUE:0.0}
for the supposed outer contour, I have:
C_H.type: 1
C_H.High: 1
C_H.value: 255
and for the supposed inner contour, I have:
C_H.type: 1
C_H.High: 0
C_H.value: 255
The latter C_H.value seems to say this contour is below the outer,
but in fact it should be at the same level, no?
What's wrong?
(I use IDL5.0 running on Alpha Digital Unix)
--
Christophe Marque
____________________________
|
|
|