disp_color ( ColorImage : : : )

Displays a color (RGB) image

disp_color displays the three channels of a color image in the current window. The channels are ordered in the sequence (red,green,blue). disp_color can be simulated by disp_grey.


Attention

Due to the restricted number of available colors the color appearance is usually different from the original.


Parameters

ColorImage (input_object)
image -> object
color image to display.


Example
/* disp_color(ColorImage) is identical to: */
ERR_TYPE my_disp_color(ObjType ColorImage) {
  create_tuple(&Tupel,3);
  set_i(Tupel,1,0);
  set_i(Tupel,2,1);
  set_i(Tupel,3,2);
  T_disp_grey(ColorImage,Tupel);
  destroy_tuple(Tupel);
}

Result

If a window is activated, the used image contains valid values and a correct output mode is set, disp_color returns TRUE. Otherwise an exception is raised.


Possible Predecessors

open_window, set_rgb, set_lut, set_hsi, set_window


Alternatives

disp_grey


See also

disp_image, open_window, open_textwindow, init_horus, set_lut, draw_lut, dump_pwindow



Copyright © 1996-1997 MVTec Software GmbH