disp_distributionT_disp_distributionDispDistributionDispDistributiondisp_distribution (Operator)

Name

disp_distributionT_disp_distributionDispDistributionDispDistributiondisp_distribution — Displays a noise distribution.

Warning

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

def disp_distribution(window_handle: HHandle, distribution: Sequence[float], row: int, column: int, scale: int) -> None

Description

disp_distributiondisp_distributionDispDistributionDispDistributionDispDistributiondisp_distribution displays a distribution in the window. RowRowRowRowrowrow and ColumnColumnColumnColumncolumncolumn define the position of the center of the graphic. ScaleScaleScaleScalescalescale 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_distributiongauss_distributionGaussDistributionGaussDistributionGaussDistributiongauss_distribution or noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeanNoiseDistributionMeannoise_distribution_mean.

Execution Information

Parameters

WindowHandleWindowHandleWindowHandleWindowHandlewindowHandlewindow_handle (input_control)  window HWindow, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Window handle.

DistributionDistributionDistributionDistributiondistributiondistribution (input_control)  real-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Gray value distribution (513 values).

RowRowRowRowrowrow (input_control)  point.y HTupleintHTupleHtuple (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 row ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

ColumnColumnColumnColumncolumncolumn (input_control)  point.x HTupleintHTupleHtuple (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 column ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

ScaleScaleScaleScalescalescale (input_control)  integer HTupleintHTupleHtuple (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)

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_drawset_drawSetDrawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthSetLineWidthset_line_width, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi, noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeanNoiseDistributionMeannoise_distribution_mean, gauss_distributiongauss_distributionGaussDistributionGaussDistributionGaussDistributiongauss_distribution

See also

gen_region_histogen_region_histoGenRegionHistoGenRegionHistoGenRegionHistogen_region_histo, gauss_distributiongauss_distributionGaussDistributionGaussDistributionGaussDistributiongauss_distribution, noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeanNoiseDistributionMeannoise_distribution_mean

Module

Foundation