Operator Reference

disp_objT_disp_objDispObjDispObjdisp_obj (Operator)

disp_objT_disp_objDispObjDispObjdisp_obj — Displays image objects (image, region, XLD).

Signature

disp_obj(Object : : WindowHandle : )

Herror T_disp_obj(const Hobject Object, const Htuple WindowHandle)

void DispObj(const HObject& Object, const HTuple& WindowHandle)

void HObject::DispObj(const HWindow& WindowHandle) const

void HWindow::DispObj(const HObject& Object) const

static void HOperatorSet.DispObj(HObject objectVal, HTuple windowHandle)

void HObject.DispObj(HWindow windowHandle)

void HWindow.DispObj(HObject objectVal)

def disp_obj(object: HObject, window_handle: HHandle) -> None

Description

disp_objdisp_objDispObjDispObjdisp_obj displays objects depending of their kind. disp_objdisp_objDispObjDispObjdisp_obj is equivalent to disp_imagedisp_imageDispImageDispImagedisp_image for one channel images, equivalent to disp_colordisp_colorDispColorDispColordisp_color for three channel images, equivalent to disp_regiondisp_regionDispRegionDispRegiondisp_region for regions and equivalent to disp_xlddisp_xldDispXldDispXlddisp_xld for XLDs.

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

ObjectObjectObjectobjectValobject (input_object)  object(-array) objectHObjectHObjectHObjectHobject

Image object to be displayed.

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

Window handle.

Example (HDevelop)

* Output of a gray image:
read_image(Image1,'monkey')
disp_obj(Image1,WindowHandle)
threshold(Image,Region,0,128)
disp_obj(Region,WindowHandle)

Example (C)

/* Output of a gray image: */
read_image(&Image,"monkey");
T_disp_obj(Image,WindowHandle);
threshold(Image,&Region,0.0,128.0);
T_disp_obj(Region,WindowHandle);

Example (HDevelop)

* Output of a gray image:
read_image(Image1,'monkey')
disp_obj(Image1,WindowHandle)
threshold(Image,Region,0,128)
disp_obj(Region,WindowHandle)

Example (HDevelop)

* Output of a gray image:
read_image(Image1,'monkey')
disp_obj(Image1,WindowHandle)
threshold(Image,Region,0,128)
disp_obj(Region,WindowHandle)

Result

If the used object is valid and a correct output mode is set, disp_objdisp_objDispObjDispObjdisp_obj returns 2 ( H_MSG_TRUE) . Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowopen_window, set_rgbset_rgbSetRgbSetRgbset_rgb, set_lutset_lutSetLutSetLutset_lut, set_hsiset_hsiSetHsiSetHsiset_hsi, scale_imagescale_imageScaleImageScaleImagescale_image, convert_image_typeconvert_image_typeConvertImageTypeConvertImageTypeconvert_image_type, min_max_graymin_max_grayMinMaxGrayMinMaxGraymin_max_gray

Alternatives

disp_colordisp_colorDispColorDispColordisp_color, disp_imagedisp_imageDispImageDispImagedisp_image, disp_xlddisp_xldDispXldDispXlddisp_xld, disp_regiondisp_regionDispRegionDispRegiondisp_region

See also

open_windowopen_windowOpenWindowOpenWindowopen_window, reset_obj_dbreset_obj_dbResetObjDbResetObjDbreset_obj_db, set_paintset_paintSetPaintSetPaintset_paint, set_lutset_lutSetLutSetLutset_lut, paint_graypaint_grayPaintGrayPaintGraypaint_gray, scale_imagescale_imageScaleImageScaleImagescale_image, convert_image_typeconvert_image_typeConvertImageTypeConvertImageTypeconvert_image_type, dump_windowdump_windowDumpWindowDumpWindowdump_window

Module

Foundation