disp_distribution
— Displays a noise distribution.
disp_distribution
is obsolete and is only provided for
reasons of backward compatibility.
disp_distribution( : : WindowHandle, Distribution, Row, Column, Scale : )
disp_distribution
displays a distribution in the window.
Row
and Column
define the position of the center of
the graphic.
Scale
allows scaling of the graphic, whereby 1 means
displaying all 256 values, 2 means displaying 128 values, 3
means displaying only 64 values, etc.
Noise distributions can be generated with
operations like gauss_distribution
or
noise_distribution_mean
.
WindowHandle
(input_control) window →
(handle)
Window handle.
Distribution
(input_control) real-array →
(real)
Gray value distribution (513 values).
Row
(input_control) point.y →
(integer)
Row index of center.
Default: 256
Suggested values: 0, 64, 128, 256
Value range:
0
≤
Row
≤
511
(lin)
Minimum increment: 1
Recommended increment: 10
Column
(input_control) point.x →
(integer)
Column index of center.
Default: 256
Suggested values: 0, 64, 128, 256
Value range:
0
≤
Column
≤
511
(lin)
Minimum increment: 1
Recommended increment: 10
Scale
(input_control) integer →
(integer)
Size of display.
Default: 1
Suggested values: 1, 2, 3, 4, 5, 6
open_window(0,0,-1,-1,'root','visible','',WindowHandle) set_draw(WindowHandle,'fill') set_color(WindowHandle,'white') read_image(Image,'monkey') draw_region(Region,WindowHandle) noise_distribution_mean(Region,Image,21,Distribution) disp_distribution (WindowHandle,Distribution,100,100,3)
open_window
,
set_draw
,
set_color
,
set_colored
,
set_line_width
,
set_rgb
,
set_hsi
,
noise_distribution_mean
,
gauss_distribution
gen_region_histo
,
gauss_distribution
,
noise_distribution_mean
Foundation