Displays a noise distribution.
::disp_distribution displays a distribution in the window. The parameters are the same as in ::set_paint(WindowHandle,'histogram') or ::gen_region_histo. Noise distributions can be generated with operations like ::gauss_distribution or ::noise_distribution_mean.
|
WindowHandle (input_control) |
window -> HTuple.long |
| Window identifier. | |
|
Distribution (input_control) |
real-array -> HTuple.double |
| Gray value distribution (513 values). | |
|
Row (input_control) |
point.y -> HTuple.long |
| Row index of center. | |
| Default value: 256 | |
| Suggested values: 0, 64, 128, 256 | |
| Typical range of values: 0 <= Row <= 511 (lin) | |
| Minimum increment: 1 | |
|
Recommended increment: 10 | |
|
Column (input_control) |
point.x -> HTuple.long |
| Column index of center. | |
| Default value: 256 | |
| Suggested values: 0, 64, 128, 256 | |
| Typical range of values: 0 <= Column <= 511 (lin) | |
| Minimum increment: 1 | |
|
Recommended increment: 10 | |
|
Scale (input_control) |
integer -> HTuple.long |
| Size of display. | |
| Default value: 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") ; set_insert(WindowHandle,"not") ; read_image(Image,"affe") ; 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, ::set_paint, ::gauss_distribution, ::noise_distribution_mean
System