<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hey guys,<br>
<br>
i was wondering if you could help me getting all pages from a
multi-paged TIFF image.<br>
<br>
There are plenty of examples on how to read tiff images, e.g.<br>
<br>
<pre class="lang-cpp prettyprint prettyprinted" style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; display: block; color: rgb(57, 51, 24); word-wrap: normal; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="kwd" style="margin: 0px; padding: 0px;
border: 0px; font-size: 13px; color: rgb(0, 0, 139);">typedef</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> itk::RGBAPixel<unsigned char> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">PixelType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="com" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 128, 128);">// Pixel type</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
</span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 139);">const</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 139);">unsigned</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> int</span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 139);"></span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">Dimension</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0p
x; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> 3</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);"></span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
</span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 139);">typedef</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> itk</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">Image</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">PixelType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">,</span><span class="pln" style="margin: 0px; padding: 0px; borde
r: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">Dimension</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">></span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ImageType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ImageType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">Pointer</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> image</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;
</span></code><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 139);">typedef</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> itk</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ImageFileReader</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0
, 0);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ImageType</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">></span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ReaderType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"></span></code>
<code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New
', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">itk::TIFFImageIO::Pointer io = itk</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">TIFFImageIO</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">New</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">()</span></code></span></code>
</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ReaderType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">Pointer</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> reader</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"></span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="typ" style="margin: 0px; padding: 0px; border: 0px
; font-size: 13px; color: rgb(43, 145, 175);">ReaderType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">New</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">();</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
</span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 139);">const</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="kwd" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 139);">char</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">*</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> filename </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="str" style="margin: 0px; padding: 0px; border: 0px; font-size
: 13px; color: rgb(128, 0, 0);">"path/to/file.tif"</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
</span></code><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"></code>
reader</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">-></span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">SetImageIO</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">(io</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">);</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
reader</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">-></span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">SetFileName</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">(</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">filename</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">);
</span></code><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ImageType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">IndexType</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0
, 0, 0);">
pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">0</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">103</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">; //x</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; fo
nt-size: 13px; color: rgb(0, 0, 0);">
pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">1</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">178</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">; //y</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; fo
nt-size: 13px; color: rgb(0, 0, 0);">
</span></code><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[</span><span class="lit" style="margin: 0px; padding: 0px; border: 0p
x; font-size: 13px; color: rgb(128, 0, 0);">2</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">0</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span></code>
</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ImageType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">PixelType</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> pixelValue </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> image</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">-></span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">GetPixel</span><span class="pun" style="margin: 0
px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">(</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">);</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
std</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">cout </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><<</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="str" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">"pixel : "</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><<</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> pixelValue </span><span class="pun" style="margin: 0px; padding: 0px
; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><<</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> std</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">endl</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span></code>
</pre>
in this example, if i'm not mistaking, the third pixelIndex
corresponds to the pages of a stacked tiff image.<br>
<br>
Is this the right way to get access to single pages? And how do I
get the RGB values?<br>
<br>
My TIFF file is structured as follows:<br>
<br>
It has at least 47 Images stored, each of those has the following
dimensions<br>
520x520x3 (WxHxRGB)<br>
<br>
I checked these informations via
SCIFIOImageIO::ReadImageInformation, like this:<br>
<br>
<pre class="de1" style="padding: 0px; border: 0px none white; color: rgb(0, 0, 0); line-height: 1.2em; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 1em; margin: 0px; vertical-align: top; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; background: rgb(249, 249, 249) none repeat scroll 0% 0%;"><font face="Helvetica, Arial, sans-serif">std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="kw3" style="color: rgb(0, 0, 221);">cout</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> <span class="st0" style="color: rgb(255, 0, 0);">"Pixel Type is "</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> imageIO<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>GetComponentTypeAsString<span class="br0" style="color: rgb(0, 128, 0);">(</span>pixelType<s
pan class="br0" style="color: rgb(0, 128, 0);">)</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="me2" style="color: rgb(0, 119, 136);">endl</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span>
<span class="kw4" style="color: rgb(0, 0, 255);">const</span> <span class="kw4" style="color: rgb(0, 0, 255);">size_t</span> numDimensions <span class="sy1" style="color: rgb(0, 0, 128);">=</span> imageIO<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>GetNumberOfDimensions<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span>
std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="kw3" style="color: rgb(0, 0, 221);">cout</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> <span class="st0" style="color: rgb(255, 0, 0);">"numDimensions: "</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> numDimensions <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="me2" style="color: rgb(0, 119, 136);">endl</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span> <span class="co1" style="color: rgb(102, 102, 102);">// '5'</span>
std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="kw3" style="color: rgb(0, 0, 221);">cout</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> <span class="st0" style="color: rgb(255, 0, 0);">"component size: "</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> imageIO<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>GetComponentSize<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="br0" style="color: rgb(0, 128, 0);">)</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="me2" style="color: rgb(0, 119, 136);">endl</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span> <span class="co1" style="color: rgb(102, 102, 102);">// '8'</span>
std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="kw3" style="color: rgb(0, 0, 221);">cout</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> <span class="st0" style="color: rgb(255, 0, 0);">"pixel type (string): "</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> imageIO<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>GetPixelTypeAsString<span class="br0" style="color: rgb(0, 128, 0);">(</span>imageIO<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>GetPixelType<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="br0" style="color: rgb(0, 128, 0);">)</span><span class="br0" style="color: rgb(0, 128, 0);">)</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="me2" style="col
or: rgb(0, 119, 136);">endl</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span> <span class="co1" style="color: rgb(102, 102, 102);">// 'vector'</span>
std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="kw3" style="color: rgb(0, 0, 221);">cout</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> <span class="st0" style="color: rgb(255, 0, 0);">"pixel type: "</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> imageIO<span class="sy2" style="color: rgb(0, 0, 64);">-</span><span class="sy1" style="color: rgb(0, 0, 128);">></span>GetPixelType<span class="br0" style="color: rgb(0, 128, 0);">(</span><span class="br0" style="color: rgb(0, 128, 0);">)</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="me2" style="color: rgb(0, 119, 136);">endl</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span> <span class="co1" style="color: rgb(102, 102, 102);">// '5'</span></font></pre>
<br>
or this:<br>
<br>
<pre class="de1" style="padding: 0px; border: 0px none white; color: rgb(0, 0, 0); line-height: 1.2em; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 1em; margin: 0px; vertical-align: top; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; background: rgb(249, 249, 249) none repeat scroll 0% 0%;"><font face="Helvetica, Arial, sans-serif">ImageType::Pointer img = reader->GetOutput();
ImageType::RegionType = img->GetLargestPossibleRegion();
std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="kw3" style="color: rgb(0, 0, 221);">cout</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> <span class="st0" style="color: rgb(255, 0, 0);">"Region: "</span> <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> region <span class="sy1" style="color: rgb(0, 0, 128);"><<</span> std<span class="sy4" style="color: rgb(0, 128, 128);">::</span><span class="me2" style="color: rgb(0, 119, 136);">endl</span><span class="sy4" style="color: rgb(0, 128, 128);">;</span> <span class="co1" style="color: rgb(102, 102, 102);">// '5'
OUTPUT:
</span></font>
<font face="Helvetica, Arial, sans-serif"><span class="co1" style="color: rgb(102, 102, 102);">Dimension: 5
Index: [0,0,0,0,0]
Size: [520, 520, 47, 1, 3]
</span></font></pre>
<br>
<br>
If I print the pixels, I will get the same output for each channel
(which I guess is RGB).<br>
<br>
If I change the input dimension to 5, the index has to be changed:<br>
<br>
<pre class="lang-cpp prettyprint prettyprinted" style="margin: 0px 0px 1em; padding: 5px; border: 0px; font-size: 13px; overflow: auto; width: auto; max-height: 600px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; display: block; color: rgb(57, 51, 24); word-wrap: normal; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(238, 238, 238);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="typ" style="margin: 0px; padding: 0px;
border: 0px; font-size: 13px; color: rgb(43, 145, 175);">ImageType</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">::</span><span class="typ" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(43, 145, 175);">IndexType</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">0</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> 240</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">; //x</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">
pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">1</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> 430</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);"></span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">; //y</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; fo
nt-size: 13px; color: rgb(0, 0, 0);">
</span></code><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[</span><span class="lit" style="margin: 0px; padding: 0px; border: 0p
x; font-size: 13px; color: rgb(128, 0, 0);">2</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">0</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span></code> //z
</span></code><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[</span><span class="lit" style="margin: 0px; padding: 0px; border: 0p
x; font-size: 13px; color: rgb(128, 0, 0);">3</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">0</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span></code> //timestamp i guess? Dimension of this is always 1 for my data
</span></code><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[4</span><span class="lit" style="margin: 0px; padding: 0px; border: 0
px; font-size: 13px; color: rgb(128, 0, 0);"></span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);">0</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span></code> //R-Channel</span></code>
<code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[4</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size:
13px; color: rgb(128, 0, 0);"></span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> 1</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);"></span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span></code> //G-Channel</span></code>
<code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"><code style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit; background-color: rgb(238, 238, 238);"><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">pixelIndex</span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">[4</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size:
13px; color: rgb(128, 0, 0);"></span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">]</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> </span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">=</span><span class="pln" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);"> 2</span><span class="lit" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(128, 0, 0);"></span><span class="pun" style="margin: 0px; padding: 0px; border: 0px; font-size: 13px; color: rgb(0, 0, 0);">;</span></code> //B-Channel</span></code>
</pre>
Is this correct?<br>
<br>
<pre class="de1" style="padding: 0px; border: 0px none white; color: rgb(0, 0, 0); line-height: 1.2em; font-style: normal; font-variant: normal; font-weight: normal; font-stretch: normal; font-size: 1em; margin: 0px; vertical-align: top; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; widows: 1; word-spacing: 0px; background: rgb(249, 249, 249) none repeat scroll 0% 0%;"><font face="Helvetica, Arial, sans-serif"><span class="co1" style="color: rgb(102, 102, 102);">OUTPUT for pixels via img->GetPixel(pixelIndex) is
</span></font>
[930, 930, 930]
<font face="Helvetica, Arial, sans-serif"><span class="co1" style="color: rgb(102, 102, 102);">for idx = [ {{240, 430, 0, 0, 0}}</span></font><font face="Helvetica, Arial, sans-serif"><span class="co1" style="color: rgb(102, 102, 102);"> , </span></font><font face="Helvetica, Arial, sans-serif"><span class="co1" style="color: rgb(102, 102, 102);"> {{240, 430, 0, 0, 1}}</span></font> , <font face="Helvetica, Arial, sans-serif"><span class="co1" style="color: rgb(102, 102, 102);">{{240, 430, 0, 0, 2}}</span></font> ]
</pre>
<br>
<br>
I could think of using an ImageIterator, but I don't know how to use
them in a multi-paged image.<br>
<br>
The last thing I would like to ask you is, if you could help me on
how to use the TIFFImageIO::ReadVolume.<br>
It says that you could read 3D images, but there are neither
examples nor tips.<br>
<br>
To sum things up, i would like to know if there is a good way to
access each image in such a multi-paged TIFF file.<br>
<br>
I really hope, you guys can help me.<br>
<br>
Thanks<br>
Imre<br>
</body>
</html>