ClassesClasses | | Operators

disp_distributionT_disp_distributionDispDistributionDispDistribution (Operator)

Name

disp_distributionT_disp_distributionDispDistributionDispDistribution — Displays a noise distribution.

Warning

disp_distributiondisp_distributionDispDistributionDispDistributionDispDistribution is obsolete and is only provided for reasons of backward compatibility.

Signature

disp_distribution( : : WindowHandle, Distribution, Row, Column, Scale : )

Herror T_disp_distribution(const Htuple WindowHandle, const Htuple Distribution, const Htuple Row, const Htuple Column, const Htuple Scale)

void DispDistribution(const HTuple& WindowHandle, const HTuple& Distribution, const HTuple& Row, const HTuple& Column, const HTuple& Scale)

void HWindow::DispDistribution(const HTuple& Distribution, Hlong Row, Hlong Column, Hlong Scale) const

static void HOperatorSet.DispDistribution(HTuple windowHandle, HTuple distribution, HTuple row, HTuple column, HTuple scale)

void HWindow.DispDistribution(HTuple distribution, int row, int column, int scale)

Description

disp_distributiondisp_distributionDispDistributionDispDistributionDispDistribution displays a distribution in the window. The parameters are the same as in set_paint(WindowHandle,'histogram')set_paint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram")SetPaint(WindowHandle,"histogram") or gen_region_histogen_region_histoGenRegionHistoGenRegionHistoGenRegionHisto. Noise distributions can be generated with operations like gauss_distributiongauss_distributionGaussDistributionGaussDistributionGaussDistribution or noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeanNoiseDistributionMean.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandle (input_control)  window HWindow, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Window handle.

DistributionDistributionDistributionDistributiondistribution (input_control)  real-array HTupleHTupleHtuple (real) (double) (double) (double)

Gray value distribution (513 values).

RowRowRowRowrow (input_control)  point.y HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row index of center.

Default value: 256

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ Row Row Row Row row ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

ColumnColumnColumnColumncolumn (input_control)  point.x HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column index of center.

Default value: 256

Suggested values: 0, 64, 128, 256

Typical range of values: 0 ≤ Column Column Column Column column ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

ScaleScaleScaleScalescale (input_control)  integer HTupleHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Size of display.

Default value: 1

Suggested values: 1, 2, 3, 4, 5, 6

Example (HDevelop)

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)

Example (C)

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) ;

Example (HDevelop)

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)

Example (HDevelop)

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)

Example (HDevelop)

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)

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindow, set_drawset_drawSetDrawSetDrawSetDraw, set_colorset_colorSetColorSetColorSetColor, set_coloredset_coloredSetColoredSetColoredSetColored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidth, set_rgbset_rgbSetRgbSetRgbSetRgb, set_hsiset_hsiSetHsiSetHsiSetHsi, noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeanNoiseDistributionMean, gauss_distributiongauss_distributionGaussDistributionGaussDistributionGaussDistribution

See also

gen_region_histogen_region_histoGenRegionHistoGenRegionHistoGenRegionHisto, set_paintset_paintSetPaintSetPaintSetPaint, gauss_distributiongauss_distributionGaussDistributionGaussDistributionGaussDistribution, noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeanNoiseDistributionMean

Module

Foundation


ClassesClasses | | Operators