<DIV>
<DIV>Hi,</DIV>
<DIV>&nbsp;</DIV>
<DIV>I already knew about GetPixel() and SetPixel() methods as well as iterators to access the value of one pixel of my image. </DIV>
<DIV>&nbsp;</DIV>
<DIV>But is there already a method which enables me to retrieve the pixel data of my image directly in one matrix, such as GetBuffer or something like that? Maybe this is not the ideal but I was more familiar with having data stocked in one matrix and accessing pixel data via for loop and&nbsp; so on.... </DIV>
<DIV>&nbsp;</DIV>
<DIV>Isabelle<BR><BR><B><I>Jakub Bican &lt;jakub.bican@matfyz.cz&gt;</I></B> a écrit :</DIV>
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR><BR>Hi Isabelle<BR><BR>How to access the pixel data is described in the ITK Software Guide<BR><BR>http://www.itk.org/ItkSoftwareGuide.pdf<BR><BR>Look for the chapter 4.1.3 "Accessing Pixel Data" (page 38).<BR><BR>You can also use more efficient way - iterators. See chapter 11 <BR>"Iterators" (page 687).<BR><BR>Regards,<BR>Jakub.<BR><BR><BR><BR>Renaud Isabelle napsal(a):<BR>&gt; Hi Jakub,<BR>&gt; <BR>&gt; I took a look on your filter. However, I think there was a <BR>&gt; misunderstanding.<BR>&gt; <BR>&gt; I don't want to perform a pixel-wise log operation on my image.<BR>&gt; <BR>&gt; Actually, I want to perform a kind of histogram transform called <BR>&gt; *histogram logarithmic* to improve the contrast of my image.<BR>&gt; <BR>&gt; So far, I performed histogram usual rescaling to transform my <BR>&gt; intensities into the interval 0-255. Now, I would like my distribution
 <BR>&gt; of gray intensities would be adjusted to improve contrast like:<BR>&gt; <BR>&gt; f`'(x,y) = f min * (fmax / fmin) * P(f(x,y)) where P is the cumulated <BR>&gt; histogram.<BR>&gt; <BR>&gt; So adaptor will not help me, because this is an overall transform of the <BR>&gt; image. Maybe I have to create my own filter but how can I access the <BR>&gt; matrice of my pixel data form my image?<BR>&gt; <BR>&gt; thanks,<BR>&gt; <BR>&gt; Isabelle<BR>&gt; <BR>&gt; <BR>&gt; */Jakub Bican <JAKUB.BICAN@MATFYZ.CZ>/* a écrit :<BR>&gt; <BR>&gt; <BR>&gt; Hi Isabelle,<BR>&gt; <BR>&gt; logarithmic scaling can be done by these filters:<BR>&gt; <BR>&gt; LogImageFilter (<BR>&gt; http://www.itk.org/Doxygen/html/classitk_1_1LogImageFilter.html )<BR>&gt; Log10ImageFilter (<BR>&gt; http://www.itk.org/Doxygen/html/classitk_1_1Log10ImageFilter.html )<BR>&gt; <BR>&gt; and/or adaptors:<BR>&gt; <BR>&gt; LogImageAdaptor (<BR>&gt; http://www.itk.org/Doxygen/html/classitk_1_1LogImageAdaptor.html )<BR>&gt;
 Log10ImageAdaptor (<BR>&gt; http://www.itk.org/Doxygen/html/classitk_1_1Log10ImageAdaptor.html )<BR>&gt; <BR>&gt; Hope this will help you.<BR>&gt; <BR>&gt; Regards,<BR>&gt; Jakub<BR>&gt; <BR>&gt; <BR>&gt; Renaud Isabelle napsal(a):<BR>&gt; <BR>&gt; &gt; Hi Luis,<BR>&gt; &gt;<BR>&gt; &gt; In one of your numerous posted replies, you already mentioned the<BR>&gt; use<BR>&gt; &gt; of *logarithmic scaling* to improve visualisation of images.<BR>&gt; &gt;<BR>&gt; &gt; "It is not rare to use a logarithmic intensity transformation in<BR>&gt; order<BR>&gt; &gt; to display the FFT output and still be able to "see" something."<BR>&gt; &gt;<BR>&gt; http://public.kitware.com/pipermail/insight-users/2004-November/011201.html<BR>&gt; &gt;<BR>&gt; &gt; This is actually what I need to do to improve the quality of my<BR>&gt; &gt; ultrasonographic image.<BR>&gt; &gt;<BR>&gt; &gt; --&gt; Could you tell me a way to perform this logarithmic scaling? Is<BR>&gt; &gt; there already a function for that, or
 maybe could I compute my<BR>&gt; own one<BR>&gt; &gt; if you tell me how to get access of the pixel data of my image<BR>&gt; &gt; displayed with ITK and VTK.<BR>&gt; &gt;<BR>&gt; &gt; Thanks for answer,<BR>&gt; &gt;<BR>&gt; &gt; Isabelle<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; ------------------------------------------------------------------------<BR>&gt; &gt; *Appel audio GRATUIT partout dans le monde* avec le nouveau Yahoo!<BR>&gt; &gt; Messenger<BR>&gt; &gt; Téléchargez le ici !<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt;------------------------------------------------------------------------<BR>&gt; &gt;<BR>&gt; &gt;_______________________________________________<BR>&gt; &gt;Insight-users mailing list<BR>&gt; &gt;Insight-users@itk.org<BR>&gt; &gt;http://www.itk.org/mailman/listinfo/insight-users<BR></BLOCKQUOTE></DIV><p>
                <hr size=1> 
<b><font color=#FF0000>Appel audio GRATUIT</font> partout dans le monde</b> avec le nouveau Yahoo! Messenger<br> 
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.messenger.yahoo.com">Téléchargez le ici !</a>