Name
set_paintT_set_paintSetPaintset_paintSetPaintSetPaint — Define the gray value output mode.
set_paintset_paintSetPaintset_paintSetPaintSetPaint defines the output mode for gray value display
(single- or multichannel) in the window. The mode is used by
disp_objdisp_objDispObjdisp_objDispObjDispObj, disp_imagedisp_imageDispImagedisp_imageDispImageDispImage, and disp_colordisp_colorDispColordisp_colorDispColorDispColor.
This page describes the different modes that can be used for gray
value output. It should be noted that the mode 'default' is the most
suitable in almost all cases.
The hardware characteristics determine how gray values can be
displayed. On a screen with one to seven bit planes, only binary
data can be displayed. On screens with at least eight bit planes, it
is possible to display multiple gray values. For binary displays,
HALCON includes algorithms using a dithering matrix (fast, but low
resolution), minimal error (good, but slow) and thresholding. Using
the thresholding algorithm, the threshold can be passed as a second
parameter (a tuple with the string 'threshold' and the actual
threshold, e.g.: ['theshold', 100]).
Displays with eight bit planes use approximately 200 gray values for
output. Of course it is still possible to use a binary display on
those displays.
A different way to display gray values is the histogram (mode:
'histogram'). This mode has two additional parameter values: Row
(second value) and column (third value). They denote row and column
of the histogram center for positioning on the screen. The scale
factor (fourth value) determines the histogram size: a scale factor
of 1 distinguishes 256 gray values, 2 distinguishes 128 gray values,
3 distinguishes 64 gray values, and so on. The four values are
passed as a tuple, e.g. ['histogram',256,256,1]. If only the first
value is passed ('histogram'), the other values are set to defaults
or the last values, respectively. For histogram computation see
gray_histogray_histoGrayHistogray_histoGrayHistoGrayHisto. Histogram output honors the same parameters as
operators like disp_regiondisp_regionDispRegiondisp_regionDispRegionDispRegion etc. (e.g. set_colorset_colorSetColorset_colorSetColorSetColor,
set_drawset_drawSetDrawset_drawSetDrawSetDraw, etc.)
Yet another mode is the display of relative frequencies of the
number of connected components (”component_histogram”). For
information on computing the component histogram see
shape_histo_allshape_histo_allShapeHistoAllshape_histo_allShapeHistoAllShapeHistoAll. Positioning and resolution are exactly as
in the mode 'histogram'.
In mode 'mean', all object regions are displayed in their mean gray
value.
The modes 'row' and 'column' allow the display of lines or columns,
respecively. The position (row and column index) is passed with the
second parameter value. The third parameter value is the scale factor
in percent (100 means 1 pixel per gray value, 50 means one pixel per
two gray values).
Gray images can also be interpreted as 3D data, depending on the
gray value. To view these 3D plots, select the modes 'contourline',
'3d_plot_lines' or '3d_plot_hidden_lines'. If your graphics card supports
OpenGL, you can also choose '3d_plot' for a high quality plot
that is well suited for interactive display (see update_window_poseupdate_window_poseUpdateWindowPoseupdate_window_poseUpdateWindowPoseUpdateWindowPose
on how to make the display interactive).
Three-channel images are interpreted as RGB images. They can be
displayed in three different modes. Two of them can be optimized by
Floyd-Steinberg dithering.
Vector field images can be viewed as 'vector_field'.
All available painting modes can be queried with
query_paintquery_paintQueryPaintquery_paintQueryPaintQueryPaint.
Parameters for modes that need more than one parameter can be passed
the following ways:
-
Only the name of the mode is passed: The defaults or the most
recently used values are used, respectively.
Example: set_paint(WindowHandle,'contourline')set_paint(WindowHandle,"contourline")SetPaint(WindowHandle,"contourline")set_paint(WindowHandle,"contourline")SetPaint(WindowHandle,"contourline")SetPaint(WindowHandle,"contourline")
-
All values are passed: All output characteristics can be set.
Example: set_paint(WindowHandle,['contourline',10,1])set_paint(WindowHandle,["contourline",10,1])SetPaint(WindowHandle,["contourline",10,1])set_paint(WindowHandle,["contourline",10,1])SetPaint(WindowHandle,["contourline",10,1])SetPaint(WindowHandle,["contourline",10,1])
-
Only the first n values are passed: Only the passed values are
changed.
Example: set_paint(WindowHandle,['contourline',10])set_paint(WindowHandle,["contourline",10])SetPaint(WindowHandle,["contourline",10])set_paint(WindowHandle,["contourline",10])SetPaint(WindowHandle,["contourline",10])SetPaint(WindowHandle,["contourline",10])
-
Some of the values are replaced by an asterisk ('*'): The value of
the replaced parameters is not changed.
Example: set_paint(WindowHandle,['contourline','*',1])set_paint(WindowHandle,["contourline","*",1])SetPaint(WindowHandle,["contourline","*",1])set_paint(WindowHandle,["contourline","*",1])SetPaint(WindowHandle,["contourline","*",1])SetPaint(WindowHandle,["contourline","*",1])
If the current mode is 'default', HALCON chooses a suitable
algorithm for the output of 2- and 3-channel images. No
set_paintset_paintSetPaintset_paintSetPaintSetPaint call is necessary in this case.
Apart from set_paintset_paintSetPaintset_paintSetPaintSetPaint there are other operators that affect
the output of gray values. The most important of them are
set_partset_partSetPartset_partSetPartSetPart, set_part_styleset_part_styleSetPartStyleset_part_styleSetPartStyleSetPartStyle,set_lutset_lutSetLutset_lutSetLutSetLut and
set_lut_styleset_lut_styleSetLutStyleset_lut_styleSetLutStyleSetLutStyle. Some output modes display gray values using
region output (e.g. 'histogram','contourline','3d_plot_lines', etc.). In
these modes, parameters set with set_colorset_colorSetColorset_colorSetColorSetColor,
set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb,set_hsiset_hsiSetHsiset_hsiSetHsiSetHsi, set_pixelset_pixelSetPixelset_pixelSetPixelSetPixel,
set_shapeset_shapeSetShapeset_shapeSetShapeSetShape, set_line_widthset_line_widthSetLineWidthset_line_widthSetLineWidthSetLineWidth and set_insertset_insertSetInsertset_insertSetInsertSetInsert
influence gray value output. This can lead to unexpected results when
using set_shape('convex')set_shape("convex")SetShape("convex")set_shape("convex")SetShape("convex")SetShape("convex") and
set_paint(WindowHandle,'histogram')set_paint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram")set_paint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram"). Here, the convex hull
of the histogram is displayed.
Modes:
-
one-channel images:
- 'default'"default""default""default""default""default"
optimal display on given hardware
- 'gray'"gray""gray""gray""gray""gray"
gray value output
- 'mean'"mean""mean""mean""mean""mean"
mean gray value
- 'dither4_1'"dither4_1""dither4_1""dither4_1""dither4_1""dither4_1"
binary image, dithering matrix 4x4
- 'dither4_2'"dither4_2""dither4_2""dither4_2""dither4_2""dither4_2"
binary image, dithering matrix 4x4
- 'dither4_3'"dither4_3""dither4_3""dither4_3""dither4_3""dither4_3"
binary image, dithering matrix 4x4
- 'dither8_1'"dither8_1""dither8_1""dither8_1""dither8_1""dither8_1"
binary image, dithering matrix 8x8
- 'floyd_steinberg'"floyd_steinberg""floyd_steinberg""floyd_steinberg""floyd_steinberg""floyd_steinberg"
-
binary image, optimal gray value simulation
- ['threshold',Threshold]["threshold",Threshold]["threshold",Threshold]["threshold",Threshold]["threshold",Threshold]["threshold",Threshold]
-
- 'threshold'"threshold""threshold""threshold""threshold""threshold"
binary image, threshold: 128 (default)
- ['threshold',200]["threshold",200]["threshold",200]["threshold",200]["threshold",200]["threshold",200]
binary image, any threshold: (here: 200)
- ['histogram',Line,Column,Scale]["histogram",Line,Column,Scale]["histogram",Line,Column,Scale]["histogram",Line,Column,Scale]["histogram",Line,Column,Scale]["histogram",Line,Column,Scale]
-
- 'histogram'"histogram""histogram""histogram""histogram""histogram"
gray value output as histogram.
position default: max. size, in the window center
- ['histogram',256,256,2]["histogram",256,256,2]["histogram",256,256,2]["histogram",256,256,2]["histogram",256,256,2]["histogram",256,256,2]
gray value output as histogram, any parameter
values.
positioning: window center (here (256,256))
size: (here 2, half the max. size)
- ['component_histogram',Line,Column,Scale]["component_histogram",Line,Column,Scale]["component_histogram",Line,Column,Scale]["component_histogram",Line,Column,Scale]["component_histogram",Line,Column,Scale]["component_histogram",Line,Column,Scale]
-
- 'component_histogram'"component_histogram""component_histogram""component_histogram""component_histogram""component_histogram"
output as histogram of the connected components.
Positioning: default
- ['component_histogram',256,256,1]["component_histogram",256,256,1]["component_histogram",256,256,1]["component_histogram",256,256,1]["component_histogram",256,256,1]["component_histogram",256,256,1]
output as histogram of the connected components.
Positioning: (here (256, 256))
Scaling: (here 1, max. size)
- ['row',Line,Scale]["row",Line,Scale]["row",Line,Scale]["row",Line,Scale]["row",Line,Scale]["row",Line,Scale]
-
- 'row'"row""row""row""row""row"
output of the gray value profile along the given
line.
line: image center (default)
Scaling: 50%
- ['row',100,20]["row",100,20]["row",100,20]["row",100,20]["row",100,20]["row",100,20]
output of the gray value profile of line 100 with
a scaling of 0.2 (20%).
- ['column',Column,Scale]["column",Column,Scale]["column",Column,Scale]["column",Column,Scale]["column",Column,Scale]["column",Column,Scale]
-
- 'column'"column""column""column""column""column"
output of the gray value profile along the given
column.
column: image center (default)
Scaling: 50%
- ['column',100,20]["column",100,20]["column",100,20]["column",100,20]["column",100,20]["column",100,20]
output of the gray value profile of column 100 with
a scaling of 0.2 (20%).
- ['contourline',Step,Colored]["contourline",Step,Colored]["contourline",Step,Colored]["contourline",Step,Colored]["contourline",Step,Colored]["contourline",Step,Colored]
-
- 'contourline'"contourline""contourline""contourline""contourline""contourline"
Gray value output as height lines:
the gray value difference per line is defined
with the parameter 'Step' (default: 30,
i.e. max. 8 lines for 256 gray values). The line
can be displayed in a given color (see
set_color) or in the gray value they
represent. This behavior is defined with the
parameter 'Colored' (0 = color, 1 = gray values).
Default is color.
- ['contourline',15,1]["contourline",15,1]["contourline",15,1]["contourline",15,1]["contourline",15,1]["contourline",15,1]
gray value output as height lines with a step of
15 and gray output.
- ['3d_plot_lines', Step, Colored, EyeHeight, EyeDistance,
ScaleGray, LinePos, ColumnPos]["3d_plot_lines", Step, Colored, EyeHeight, EyeDistance,
ScaleGray, LinePos, ColumnPos]["3d_plot_lines", Step, Colored, EyeHeight, EyeDistance,
ScaleGray, LinePos, ColumnPos]["3d_plot_lines", Step, Colored, EyeHeight, EyeDistance,
ScaleGray, LinePos, ColumnPos]["3d_plot_lines", Step, Colored, EyeHeight, EyeDistance,
ScaleGray, LinePos, ColumnPos]["3d_plot_lines", Step, Colored, EyeHeight, EyeDistance,
ScaleGray, LinePos, ColumnPos]
-
- '3d_plot_lines'"3d_plot_lines""3d_plot_lines""3d_plot_lines""3d_plot_lines""3d_plot_lines"
gray values are interpreted as 3D data: the
greater the value, the 'higher' the assumed
mountain. Lines with step 2 (second parameter
value) are drawn along the x- and y-axes.
The third parameter (Colored) determines if the
output should be in color (default) or
gray values. To define the projection of the 3D
data, use the parameters EyeHeight and
EyeDistance. The projection parameters take
values from 0 to 255. ScaleGray defines a
factor by which the gray values are multiplied
for 'height' interpretation (given in
percent. 100% = factor 1). For extreme values of
EyeHeight and EyeDistance the image can be
shifted out of place. Use RowPos and ColumnPos
to move the whole output. Values from -127 to
127 are possible.
- ['3d_plot_lines', 5, 1, 110, 160, 150, 70, -10]["3d_plot_lines", 5, 1, 110, 160, 150, 70, -10]["3d_plot_lines", 5, 1, 110, 160, 150, 70, -10]["3d_plot_lines", 5, 1, 110, 160, 150, 70, -10]["3d_plot_lines", 5, 1, 110, 160, 150, 70, -10]["3d_plot_lines", 5, 1, 110, 160, 150, 70, -10]
line step: 5 pixel
Colored: yes (1)
EyeHeight: 110
EyeDistance: 160
ScaleGray: 1.5 (150)
RowPos: 70 pixel down
ColumnPos: 10 pixel right
- ['3d_plot_hidden_lines', Step, Colored,
EyeHeight, EyeDistance, ScaleGray, LinePos, ColumnPos]["3d_plot_hidden_lines", Step, Colored,
EyeHeight, EyeDistance, ScaleGray, LinePos, ColumnPos]["3d_plot_hidden_lines", Step, Colored,
EyeHeight, EyeDistance, ScaleGray, LinePos, ColumnPos]["3d_plot_hidden_lines", Step, Colored,
EyeHeight, EyeDistance, ScaleGray, LinePos, ColumnPos]["3d_plot_hidden_lines", Step, Colored,
EyeHeight, EyeDistance, ScaleGray, LinePos, ColumnPos]["3d_plot_hidden_lines", Step, Colored,
EyeHeight, EyeDistance, ScaleGray, LinePos, ColumnPos]
-
- '3d_plot_hidden_lines'"3d_plot_hidden_lines""3d_plot_hidden_lines""3d_plot_hidden_lines""3d_plot_hidden_lines""3d_plot_hidden_lines"
like '3d_plot_lines', but computes hidden
lines.
- ['3d_plot',Mode,Step,qa,qb,qc,qd,Distance,CenterRow,CenterCol,
CenterHeight]["3d_plot",Mode,Step,qa,qb,qc,qd,Distance,CenterRow,CenterCol,
CenterHeight]["3d_plot",Mode,Step,qa,qb,qc,qd,Distance,CenterRow,CenterCol,
CenterHeight]["3d_plot",Mode,Step,qa,qb,qc,qd,Distance,CenterRow,CenterCol,
CenterHeight]["3d_plot",Mode,Step,qa,qb,qc,qd,Distance,CenterRow,CenterCol,
CenterHeight]["3d_plot",Mode,Step,qa,qb,qc,qd,Distance,CenterRow,CenterCol,
CenterHeight]
-
- '3d_plot'"3d_plot""3d_plot""3d_plot""3d_plot""3d_plot"
-
Gray values are interpreted as a 3D height field and
displayed using OpenGL.
The first parameter specifies the way in which the
height field is displayed. The following modes are
available:
- 'texture'"texture""texture""texture""texture""texture"
The height field is displayed as a closed surface and
colored using texture mapping.
The texture is passed as the second channel (for a
gray-valued texture) or as the second to fourth
channel (for a colored texture) of the image to
display.
- 'shaded'"shaded""shaded""shaded""shaded""shaded"
The height field is displayed as a closed surface
and colored using the current LUT.
- 'hidden_lines'"hidden_lines""hidden_lines""hidden_lines""hidden_lines""hidden_lines"
The height field is displayed as a hidden line plot
and colored using the current LUT.
- 'contour_lines'"contour_lines""contour_lines""contour_lines""contour_lines""contour_lines"
Similiar to 'contourline' height lines are extracted
and displayed at their actual height. Again the lines
are colored using the current LUT.
The second parameter contains the step width, i.e. at what intervals
samples in row and column direction are taken from the image. The smaller
this parameter is chosen, the coarser the resulting height field. However,
computation time increases while this parameter decreases. In the case of
'contour_lines' this parameter corresponds to the number of intervals the
height range is divided into.
The third to sixth parameter are the four values of a unit quaternion,
describing the orientation of the height field (see
axis_angle_to_quataxis_angle_to_quatAxisAngleToQuataxis_angle_to_quatAxisAngleToQuatAxisAngleToQuat for more information on quaternions).
The seventh parameter is the zooming factor. Smaller values implicate
higher zooming.
The last three parameters are the row, column, and height position of the
actual center of view. This values must be scaled to the interval [-0.5,
0.5].
You can set the third or the seventh parameter in the tuple to
'auto'"auto""auto""auto""auto""auto". Then, the zooming factor and the center of view are
determined automatically such that the plot of the height field fills the
window as good as possible. It is important that the part of the window is
set correctly (using set_partset_partSetPartset_partSetPartSetPart) before set_paintset_paintSetPaintset_paintSetPaintSetPaint is called.
By setting the third value in the tuple to 'auto'"auto""auto""auto""auto""auto", the previous
orientation (or the default one) is kept, by setting the seventh parameter
to 'auto'"auto""auto""auto""auto""auto", the provided orientation is used. It is not possible
to set any parameters after 'auto'"auto""auto""auto""auto""auto" in the tuple. Furthermore
'auto'"auto""auto""auto""auto""auto" will only work correctly if 'scale_plot'"scale_plot""scale_plot""scale_plot""scale_plot""scale_plot" is set
to 'true'"true""true""true""true""true" using set_window_paramset_window_paramSetWindowParamset_window_paramSetWindowParamSetWindowParam. (Example:
['3d_plot','shaded',4,'auto'])
Depending on the speed of your graphics card, the display of the height
field is performed at interactive rates. See the operator
update_window_poseupdate_window_poseUpdateWindowPoseupdate_window_poseUpdateWindowPoseUpdateWindowPose for an intuitive way of modifying the
parameters of the 3D plot (e.g., with the mouse).
The colors of the axis are influenced by the colors set using
set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb, set_colorset_colorSetColorset_colorSetColorSetColor, and set_coloredset_coloredSetColoredset_coloredSetColoredSetColored. The first
three colors set this way are used as colors for row, column, and height
axis (in this order).
Additional parameters concerning the 3D plot can be set using the operator
set_window_paramset_window_paramSetWindowParamset_window_paramSetWindowParamSetWindowParam.
If you intend to use '3d_plot'"3d_plot""3d_plot""3d_plot""3d_plot""3d_plot" on a Unix-like system, make sure
you have sufficient permissions on your graphics device.
Defaults:
['3d_plot','shaded',8,0.939,-0.052,0.296,-0.165,0.401,0.072,
-0.047,-0.073]["3d_plot","shaded",8,0.939,-0.052,0.296,-0.165,0.401,0.072,
-0.047,-0.073]["3d_plot","shaded",8,0.939,-0.052,0.296,-0.165,0.401,0.072,
-0.047,-0.073]["3d_plot","shaded",8,0.939,-0.052,0.296,-0.165,0.401,0.072,
-0.047,-0.073]["3d_plot","shaded",8,0.939,-0.052,0.296,-0.165,0.401,0.072,
-0.047,-0.073]["3d_plot","shaded",8,0.939,-0.052,0.296,-0.165,0.401,0.072,
-0.047,-0.073]
-
Two-channel images:
- 'default'"default""default""default""default""default"
output the first channel.
-
Three-channel images:
- 'default'"default""default""default""default""default"
output as RGB image with 'median_cut'.
- 'television'"television""television""television""television""television"
color addition algorithm for RGB images: (three
components necessary for
disp_imagedisp_imageDispImagedisp_imageDispImageDispImage). Images are displayed
via a fixed color lookup table. Fast, but
non-optimal color resolution. Only recommended on
bright screens.
- 'grid_scan'"grid_scan""grid_scan""grid_scan""grid_scan""grid_scan"
grid-scan algorithm for RGB images (three
components necessary for
disp_imagedisp_imageDispImagedisp_imageDispImageDispImage). An optimized color
lookup table is generated for each image. Slower
than 'television'. Disadvantages: Hard color
boundaries (no dithering). Different color lookup
table for every image.
- 'grid_scan_floyd_steinberg'"grid_scan_floyd_steinberg""grid_scan_floyd_steinberg""grid_scan_floyd_steinberg""grid_scan_floyd_steinberg""grid_scan_floyd_steinberg"
grid-scan with Floyd-Steinberg dithering for
smooth color boundaries.
- 'median_cut'"median_cut""median_cut""median_cut""median_cut""median_cut"
median-cut algorithm for RGB images (three
components necessary for
disp_imagedisp_imageDispImagedisp_imageDispImageDispImage). Similar to grid-scan.
Disadvantages: Hard color boundaries (no
dithering). Different color lookup table for
every image.
- 'median_cut_floyd_steinberg'"median_cut_floyd_steinberg""median_cut_floyd_steinberg""median_cut_floyd_steinberg""median_cut_floyd_steinberg""median_cut_floyd_steinberg"
median-cut algorithm with Floyd-Steinberg
dithering for smooth color boundaries.
-
Vector field images:
- ['vector_field', Mode, Step, MinLength, ScaleLength, CircleSize]["vector_field", Mode, Step, MinLength, ScaleLength, CircleSize]["vector_field", Mode, Step, MinLength, ScaleLength, CircleSize]["vector_field", Mode, Step, MinLength, ScaleLength, CircleSize]["vector_field", Mode, Step, MinLength, ScaleLength, CircleSize]["vector_field", Mode, Step, MinLength, ScaleLength, CircleSize]
-
- 'vector_field'"vector_field""vector_field""vector_field""vector_field""vector_field"
output a vector field. It is possible to display
vector fields containing relative coordinates
or vector fields containing absolute coordinates.
This behavior is controlled via the optional parameter
Mode. Possible values for Mode are 'auto' (the
visualization depends on the semantic type of the
vector field), 'absolute', or 'relative'. The default
value is 'auto'.
In the 'vector_field' mode, a circle with diameter
CircleSize is drawn for each vector at the position
of the pixel. Furthermore, a line segment is drawn
with the current vector.
The step size for drawing the vectors, i.e., the
distance between the drawn vectors, can be set
with the parameter Step. Short vectors can be
suppressed with the parameter MinLength. The
fourth parameter value scales
the vector length. It should be noted that by
setting 'vector_field' only the internal
parameters Mode, Step, MinLength, ScaleLength,
and CircleSize are
changed. The current display mode is not
changed. Vector field images are always
displayed as vector field, no matter which mode
is selected with set_paintset_paintSetPaintset_paintSetPaintSetPaint.
- ['vector_field','auto',16,2,3,5]["vector_field","auto",16,2,3,5]["vector_field","auto",16,2,3,5]["vector_field","auto",16,2,3,5]["vector_field","auto",16,2,3,5]["vector_field","auto",16,2,3,5]
Output of every 16th vector, that is longer than 2 pixel. Each
vector is multiplied by 3 for output.
-
Display of color images ('television', 'grid_scan', etc.) changes
the color lookup tables.
-
If a wrong color mode is set, the error message may appear not until
the disp_imagedisp_imageDispImagedisp_imageDispImageDispImage call.
-
Gray value output may be influenced by region output parameters. This
can yield unexpected results.
- Multithreading type: reentrant (runs in parallel with non-exclusive operators).
- Multithreading scope: global (may be called from any thread).
- Processed without parallelization.
ModeModeModeModeModemode (input_control) string-array → HTupleHTupleHTupleVARIANTHtuple (string / integer / real) (string / int / long / double) (HString / Hlong / double) (char* / Hlong / double) (BSTR / Hlong / double) (char* / Hlong / double)
Output mode. Additional parameters possible.
Default value:
'default'
"default"
"default"
"default"
"default"
"default"
List of values: '3d_plot'"3d_plot""3d_plot""3d_plot""3d_plot""3d_plot", '3d_plot_hidden_lines'"3d_plot_hidden_lines""3d_plot_hidden_lines""3d_plot_hidden_lines""3d_plot_hidden_lines""3d_plot_hidden_lines", '3d_plot_lines'"3d_plot_lines""3d_plot_lines""3d_plot_lines""3d_plot_lines""3d_plot_lines", '3d_plot_point'"3d_plot_point""3d_plot_point""3d_plot_point""3d_plot_point""3d_plot_point", 'column'"column""column""column""column""column", 'contourline'"contourline""contourline""contourline""contourline""contourline", 'default'"default""default""default""default""default", 'histogram'"histogram""histogram""histogram""histogram""histogram", 'row'"row""row""row""row""row", 'vector_field'"vector_field""vector_field""vector_field""vector_field""vector_field"
read_image(Image,'fabrik')
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
query_paint(WindowHandle,Modi)
fwrite_string(FileHandle,['available gray value modes: ',Modi])
fnew_line(FileHandle)
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_color(WindowHandle,'red')
set_draw(WindowHandle,'margin')
set_paint(WindowHandle,'histogram')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'blue')
set_paint(WindowHandle,['histogram',100,100,3])
disp_image(Image,WindowHandle)
set_color(WindowHandle,'yellow')
set_paint(WindowHandle,['row',100])
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_paint(WindowHandle,['contourline',10,1])
disp_image(Image,WindowHandle)
set_lut(WindowHandle,'color')
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_part(WindowHandle,100,100,300,300)
set_paint(WindowHandle,'3d_plot')
disp_image(Image,WindowHandle)
Htuple Modi,TmpTuple1,TmpTuple2,TmpTuple3, WindowHandleTuple ;
create_tuple(&TmpTuple1,1) ;
create_tuple(&TmpTuple2,2) ;
create_tuple(&TmpTuple3,3) ;
create_tuple(&WindowHandleTuple,1) ;
read_image(&Image,"fabrik") ;
open_window(0,0,-1,-1,"root","visible","",&WindowHandle) ;
T_query_paint(WindowHandleTuple,Modi) ;
T_fwrite_string(FileHandle,Modi) ;
fnew_line(FileHandle) ;
disp_image(Image,WindowHandle) ;
get_mbutton(WindowHandle,NULL,NULL,NULL) ;
set_s(TmpTuple1,"red",0) ;
set_i(WindowHandleTuple,WindowHandle,0);
T_set_color(WindowHandleTuple,TmpTuple1) ;
set_draw(WindowHandle,"margin") ;
set_s(TmpTuple1,"histogram",0) ;
T_set_paint(WindowHandleTuple,TmpTuple1) ;
disp_image(Image,WindowHandle) ;
set_s(TmpTuple1,"blue",0) ;
T_set_color(WindowHandleTuple,TmpTuple1) ;
set_s(TmpTuple3,"histogram",0) ;
set_s(TmpTuple3,100,1) ;
set_s(TmpTuple3,100,2) ;
T_set_paint(WindowHandleTuple,TmpTuple3) ;
disp_image(Image,WindowHandle) ;
set_s(TmpTuple1,"yellow",0) ;
T_set_color(WindowHandleTuple,TmpTuple1) ;
set_s(TmpTuple2,"line",0) ;
set_s(TmpTuple2,100,1) ;
T_set_paint(WindowHandleTuple,TmpTuple3) ;
disp_image(Image,WindowHandle) ;
get_mbutton(WindowHandle,NULL,NULL,NULL) ;
clear_window(WindowHandle) ;
set_s(TmpTuple3,"contourline",0) ;
set_s(TmpTuple3,10,1) ;
set_s(TmpTuple3,1,2) ;
T_set_paint(WindowHandleTuple,TmpTuple3) ;
disp_image(Image,WindowHandle) ;
set_lut(WindowHandle,"color") ;
get_mbutton(WindowHandle,NULL,NULL,NULL) ;
clear_window(WindowHandle) ;
set_part(WindowHandle,100,100,300,300) ;
set_s(TmpTuple1,"3d_plot",0) ;
T_set_paint(WindowHandleTuple,TmpTuple1) ;
disp_image(Image,WindowHandle) ;
read_image(Image,'fabrik')
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
query_paint(WindowHandle,Modi)
fwrite_string(FileHandle,['available gray value modes: ',Modi])
fnew_line(FileHandle)
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_color(WindowHandle,'red')
set_draw(WindowHandle,'margin')
set_paint(WindowHandle,'histogram')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'blue')
set_paint(WindowHandle,['histogram',100,100,3])
disp_image(Image,WindowHandle)
set_color(WindowHandle,'yellow')
set_paint(WindowHandle,['row',100])
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_paint(WindowHandle,['contourline',10,1])
disp_image(Image,WindowHandle)
set_lut(WindowHandle,'color')
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_part(WindowHandle,100,100,300,300)
set_paint(WindowHandle,'3d_plot')
disp_image(Image,WindowHandle)
read_image(Image,'fabrik')
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
query_paint(WindowHandle,Modi)
fwrite_string(FileHandle,['available gray value modes: ',Modi])
fnew_line(FileHandle)
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_color(WindowHandle,'red')
set_draw(WindowHandle,'margin')
set_paint(WindowHandle,'histogram')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'blue')
set_paint(WindowHandle,['histogram',100,100,3])
disp_image(Image,WindowHandle)
set_color(WindowHandle,'yellow')
set_paint(WindowHandle,['row',100])
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_paint(WindowHandle,['contourline',10,1])
disp_image(Image,WindowHandle)
set_lut(WindowHandle,'color')
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_part(WindowHandle,100,100,300,300)
set_paint(WindowHandle,'3d_plot')
disp_image(Image,WindowHandle)
read_image(Image,'fabrik')
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
query_paint(WindowHandle,Modi)
fwrite_string(FileHandle,['available gray value modes: ',Modi])
fnew_line(FileHandle)
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_color(WindowHandle,'red')
set_draw(WindowHandle,'margin')
set_paint(WindowHandle,'histogram')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'blue')
set_paint(WindowHandle,['histogram',100,100,3])
disp_image(Image,WindowHandle)
set_color(WindowHandle,'yellow')
set_paint(WindowHandle,['row',100])
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_paint(WindowHandle,['contourline',10,1])
disp_image(Image,WindowHandle)
set_lut(WindowHandle,'color')
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_part(WindowHandle,100,100,300,300)
set_paint(WindowHandle,'3d_plot')
disp_image(Image,WindowHandle)
read_image(Image,'fabrik')
open_window(0,0,-1,-1,'root','visible','',WindowHandle)
query_paint(WindowHandle,Modi)
fwrite_string(FileHandle,['available gray value modes: ',Modi])
fnew_line(FileHandle)
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
set_color(WindowHandle,'red')
set_draw(WindowHandle,'margin')
set_paint(WindowHandle,'histogram')
disp_image(Image,WindowHandle)
set_color(WindowHandle,'blue')
set_paint(WindowHandle,['histogram',100,100,3])
disp_image(Image,WindowHandle)
set_color(WindowHandle,'yellow')
set_paint(WindowHandle,['row',100])
disp_image(Image,WindowHandle)
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_paint(WindowHandle,['contourline',10,1])
disp_image(Image,WindowHandle)
set_lut(WindowHandle,'color')
get_mbutton(WindowHandle,_,_,_)
clear_window(WindowHandle)
set_part(WindowHandle,100,100,300,300)
set_paint(WindowHandle,'3d_plot')
disp_image(Image,WindowHandle)
set_paintset_paintSetPaintset_paintSetPaintSetPaint returns 2 (H_MSG_TRUE) if the parameter is correct and the
window is valid. Otherwise an exception is raised.
query_paintquery_paintQueryPaintquery_paintQueryPaintQueryPaint,
get_paintget_paintGetPaintget_paintGetPaintGetPaint
disp_imagedisp_imageDispImagedisp_imageDispImageDispImage
get_paintget_paintGetPaintget_paintGetPaintGetPaint,
query_paintquery_paintQueryPaintquery_paintQueryPaintQueryPaint,
disp_imagedisp_imageDispImagedisp_imageDispImageDispImage,
set_shapeset_shapeSetShapeset_shapeSetShapeSetShape,
set_rgbset_rgbSetRgbset_rgbSetRgbSetRgb,
set_colorset_colorSetColorset_colorSetColorSetColor,
set_grayset_graySetGrayset_graySetGraySetGray,
set_window_paramset_window_paramSetWindowParamset_window_paramSetWindowParamSetWindowParam,
update_window_poseupdate_window_poseUpdateWindowPoseupdate_window_poseUpdateWindowPoseUpdateWindowPose
Foundation