<div dir="ltr">Magnificent!<br><br>Thanks.<br><br><div class="gmail_quote">On Thu, May 10, 2012 at 1:19 PM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com" target="_blank">daviddoria@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Thu, May 10, 2012 at 2:19 AM, Hila Hiler <<a href="mailto:hilahiler@gmail.com">hilahiler@gmail.com</a>> wrote:<br>
> Hi All,<br>
><br>
> I have an intensity image and would like to have for each pixel in this<br>
> image another element which will indicate about data that I would like to<br>
> know in the next time that I'll use in this picture. That element should be<br>
> a Boolean and indicate for me whether or not there is a pixel of another<br>
> image in this location (in fact it's to minimize the number of images that<br>
> are inserted into one image in order to simplify the user's interaction with<br>
> my software).<br>
><br>
> for example:<br>
> image consists of pixels<br>
> for each pixel insert a Boolean variable that will store 0/1 due to my<br>
> input.<br>
><br>
> with arrays there is tuple/component option. is there a similar method in<br>
> itk or other idea?<br>
><br>
> Best,<br>
> Hila<br>
<br>
</div></div>You could use an itk::VectorImage or itk::Image<itk::CovariantVector> :<br>
<a href="http://www.itk.org/Wiki/ITK/Examples/VectorImages/VectorImage" target="_blank">http://www.itk.org/Wiki/ITK/Examples/VectorImages/VectorImage</a><br>
<br>
Just use 0 in a second channel for boolean false and anything but zero<br>
(e.g. 1) for boolean true (even though this channel will be the same<br>
type as the actual data channel).<br>
<span class="HOEnZb"><font color="#888888"><br>
David<br>
</font></span></blockquote></div><br></div>