disp_objT_disp_objDispObjDispObjdisp_obj (Operator)

Name

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_objDispObjDispObjDispObjdisp_obj displays objects depending of their kind. disp_objdisp_objDispObjDispObjDispObjdisp_obj is equivalent to disp_imagedisp_imageDispImageDispImageDispImagedisp_image for one channel images, equivalent to disp_colordisp_colorDispColorDispColorDispColordisp_color for three channel images, equivalent to disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region for regions and equivalent to disp_xlddisp_xldDispXldDispXldDispXlddisp_xld for XLDs.

Execution Information

Parameters

ObjectObjectObjectObjectobjectValobject (input_object)  object(-array) objectHObjectHObjectHObjectHobject

Image object to be displayed.

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

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_objDispObjDispObjDispObjdisp_obj returns TRUE. Otherwise an exception is raised.

Possible Predecessors

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, set_rgbset_rgbSetRgbSetRgbSetRgbset_rgb, set_lutset_lutSetLutSetLutSetLutset_lut, set_hsiset_hsiSetHsiSetHsiSetHsiset_hsi, scale_imagescale_imageScaleImageScaleImageScaleImagescale_image, convert_image_typeconvert_image_typeConvertImageTypeConvertImageTypeConvertImageTypeconvert_image_type, min_max_graymin_max_grayMinMaxGrayMinMaxGrayMinMaxGraymin_max_gray

Alternatives

disp_colordisp_colorDispColorDispColorDispColordisp_color, disp_imagedisp_imageDispImageDispImageDispImagedisp_image, disp_xlddisp_xldDispXldDispXldDispXlddisp_xld, disp_regiondisp_regionDispRegionDispRegionDispRegiondisp_region

See also

open_windowopen_windowOpenWindowOpenWindowOpenWindowopen_window, reset_obj_dbreset_obj_dbResetObjDbResetObjDbResetObjDbreset_obj_db, set_paintset_paintSetPaintSetPaintSetPaintset_paint, set_lutset_lutSetLutSetLutSetLutset_lut, paint_graypaint_grayPaintGrayPaintGrayPaintGraypaint_gray, scale_imagescale_imageScaleImageScaleImageScaleImagescale_image, convert_image_typeconvert_image_typeConvertImageTypeConvertImageTypeConvertImageTypeconvert_image_type, dump_windowdump_windowDumpWindowDumpWindowDumpWindowdump_window

Module

Foundation