1
%++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
%.COPYRIGHT (c) 1986-2008 European Southern Observatory
5
%.KEYWORDS MIDAS, help files, EXTRACT/REFERENCE_IMAGE
6
%.PURPOSE On-line help file for the command: EXTRACT/REFERENCE_IMAGE
7
%.VERSION 1.0 04-JUNE-1986 : Creation, KB
8
%----------------------------------------------------------------
12
EXTRACT/REFERENCE_IMAGE 22-JAN-2008 KB
14
EXTRACT/REFERENCE_IMAGE in ref out low[,hi] [inout_flag]
15
extract subimage according to reference image
18
Extract pixels from input image according to reference image.
21
EXTRACT/REFERENCE_IMAGE in ref out low[,hi] [inout_flag]
25
ref = reference frame, must have same dimension as input frame;
26
defaulted to the input image
28
out = resulting 1-dimensional frame
30
low,hi = (closed) interval for pixel values in ref. frame
31
low may be set to "<" to indicate minval of ref. frame
32
hi may be set to ">" to indicate maxval of ref. frame
34
inout_flag = IN or OUT, to indicate if we look inside or outside
35
the interval [low,high]
38
For all pixels in the ref. frame with a value inside or
39
outside the interval [low,hi], depending upon the 'inout_flag'
40
parameter, the corresponding pixels of the input frame are
41
copied into the result frame, which will be a 1-dim image
42
(i.e. the pixels will be stored as one vector.
43
By changing the descriptors NAXIS, NPIX, etc. one could then
44
adapt the result frame to your needs.
45
A previous version of this command used a different, very
46
simple rule for extracting pixels:
47
For all pixels in the ref. frame with a value >= 'low',
48
the corresponding pixels of the input frame are copied into the
50
For backwards compatibility this rule is used when only one
51
value is entered for the 'low,hi' parameter and 'inout_flag'
53
The no. of pixels found is stored in OUTPUTI(15).
57
EXTRACT/IMAGE, EXTRACT/LINE, FIND/PIXEL
61
EXTRACT/REFERENCE durazno ref result 97.3,>
62
Frame result.bdf will contain all pixels of durazno.bdf where
63
the corresponding pixel in ref.bdf has a value >= 97.3
65
EXTRACT/REFERENCE naranja ref result 97.3,> out
66
Frame result.bdf will contain all pixels of naranja.bdf where
67
the corresponding pixel in ref.bdf has a value < 97.3
69
EXTRACT/REFERENCE naranja ? result 97.3,> out
70
Frame result.bdf will contain all pixels of naranja.bdf which
73
EXTRACT/REFERENCE itest ref result 2.2
74
This is the previous usage of the command: frame result.bdf will
75
contain all pixels of itest.bdf where the corresponding pixel
76
in ref.bdf has a value >= 2.2