Sophie

Sophie

distrib > Mageia > 5 > x86_64 > by-pkgid > 119e414702857d8461621b1713e3b817 > files > 303

cimg-devel-1.5.9-3.mga5.x86_64.rpm

\hypertarget{group__cimg__displays}{\section{Using Display Windows.}
\label{group__cimg__displays}\index{Using Display Windows.@{Using Display Windows.}}
}
When opening a display window, you can choose the way the pixel values will be normalized before being displayed on the screen. Screen displays only support color values between \mbox{[}0,255\mbox{]}, and some

When displaying an image into the display window using C\+Img\+Display\+::display(), values of the image pixels can be eventually linearly normalized between \mbox{[}0,255\mbox{]} for visualization purposes. This may be useful for instance when displaying {\ttfamily C\+Img$<$double$>$} images with pixel values between \mbox{[}0,1\mbox{]}. The normalization behavior depends on the value of {\ttfamily normalize} which can be either {\ttfamily 0},{\ttfamily 1} or {\ttfamily 2} \+:
\begin{DoxyItemize}
\item {\ttfamily 0} \+: No pixel normalization is performed when displaying an image. This is the fastest process, but you must be sure your displayed image have pixel values inside the range \mbox{[}0,255\mbox{]}.
\item {\ttfamily 1} \+: Pixel value normalization is done for each new image display. Image pixels are not modified themselves, only displayed pixels are normalized.
\item {\ttfamily 2} \+: Pixel value normalization is done for the first image display, then the normalization parameters are kept and used for all the next image displays. 
\end{DoxyItemize}