Operator Reference

disp_distributionT_disp_distributionDispDistributionDispDistributiondisp_distribution (Operator)

disp_distributionT_disp_distributionDispDistributionDispDistributiondisp_distribution — Displays a noise distribution.

Warning

disp_distributiondisp_distributionDispDistributionDispDistributiondisp_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_distributionDispDistributionDispDistributiondisp_distribution displays a distribution in the window. RowRowRowrowrow and ColumnColumnColumncolumncolumn define the position of the center of the graphic. ScaleScaleScalescalescale 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_distributionGaussDistributionGaussDistributiongauss_distribution or noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeannoise_distribution_mean.

Execution Information

  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).
  • Multithreading scope: global (may be called from any thread).
  • Processed without parallelization.

Parameters

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

Window handle.

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

Gray value distribution (513 values).

RowRowRowrowrow (input_control)  point.y HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Row index of center.

Default: 256

Suggested values: 0, 64, 128, 256

Value range: 0 ≤ Row Row Row row row ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

ColumnColumnColumncolumncolumn (input_control)  point.x HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Column index of center.

Default: 256

Suggested values: 0, 64, 128, 256

Value range: 0 ≤ Column Column Column column column ≤ 511 (lin)

Minimum increment: 1

Recommended increment: 10

ScaleScaleScalescalescale (input_control)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

Size of display.

Default: 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_windowOpenWindowOpenWindowopen_window, set_drawset_drawSetDrawSetDrawset_draw, set_colorset_colorSetColorSetColorset_color, set_coloredset_coloredSetColoredSetColoredset_colored, set_line_widthset_line_widthSetLineWidthSetLineWidthset_line_width, set_rgbset_rgbSetRgbSetRgbset_rgb, set_hsiset_hsiSetHsiSetHsiset_hsi, noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeannoise_distribution_mean, gauss_distributiongauss_distributionGaussDistributionGaussDistributiongauss_distribution

See also

gen_region_histogen_region_histoGenRegionHistoGenRegionHistogen_region_histo, gauss_distributiongauss_distributionGaussDistributionGaussDistributiongauss_distribution, noise_distribution_meannoise_distribution_meanNoiseDistributionMeanNoiseDistributionMeannoise_distribution_mean

Module

Foundation