<DIV>
<DIV>Hi,</DIV>
<DIV> </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> </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 so on.... </DIV>
<DIV> </DIV>
<DIV>Isabelle<BR><BR><B><I>Jakub Bican <jakub.bican@matfyz.cz></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>> Hi Jakub,<BR>> <BR>> I took a look on your filter. However, I think there was a <BR>> misunderstanding.<BR>> <BR>> I don't want to perform a pixel-wise log operation on my image.<BR>> <BR>> Actually, I want to perform a kind of histogram transform called <BR>> *histogram logarithmic* to improve the contrast of my image.<BR>> <BR>> So far, I performed histogram usual rescaling to transform my <BR>> intensities into the interval 0-255. Now, I would like my distribution
<BR>> of gray intensities would be adjusted to improve contrast like:<BR>> <BR>> f`'(x,y) = f min * (fmax / fmin) * P(f(x,y)) where P is the cumulated <BR>> histogram.<BR>> <BR>> So adaptor will not help me, because this is an overall transform of the <BR>> image. Maybe I have to create my own filter but how can I access the <BR>> matrice of my pixel data form my image?<BR>> <BR>> thanks,<BR>> <BR>> Isabelle<BR>> <BR>> <BR>> */Jakub Bican <JAKUB.BICAN@MATFYZ.CZ>/* a écrit :<BR>> <BR>> <BR>> Hi Isabelle,<BR>> <BR>> logarithmic scaling can be done by these filters:<BR>> <BR>> LogImageFilter (<BR>> http://www.itk.org/Doxygen/html/classitk_1_1LogImageFilter.html )<BR>> Log10ImageFilter (<BR>> http://www.itk.org/Doxygen/html/classitk_1_1Log10ImageFilter.html )<BR>> <BR>> and/or adaptors:<BR>> <BR>> LogImageAdaptor (<BR>> http://www.itk.org/Doxygen/html/classitk_1_1LogImageAdaptor.html )<BR>>
Log10ImageAdaptor (<BR>> http://www.itk.org/Doxygen/html/classitk_1_1Log10ImageAdaptor.html )<BR>> <BR>> Hope this will help you.<BR>> <BR>> Regards,<BR>> Jakub<BR>> <BR>> <BR>> Renaud Isabelle napsal(a):<BR>> <BR>> > Hi Luis,<BR>> ><BR>> > In one of your numerous posted replies, you already mentioned the<BR>> use<BR>> > of *logarithmic scaling* to improve visualisation of images.<BR>> ><BR>> > "It is not rare to use a logarithmic intensity transformation in<BR>> order<BR>> > to display the FFT output and still be able to "see" something."<BR>> ><BR>> http://public.kitware.com/pipermail/insight-users/2004-November/011201.html<BR>> ><BR>> > This is actually what I need to do to improve the quality of my<BR>> > ultrasonographic image.<BR>> ><BR>> > --> Could you tell me a way to perform this logarithmic scaling? Is<BR>> > there already a function for that, or
maybe could I compute my<BR>> own one<BR>> > if you tell me how to get access of the pixel data of my image<BR>> > displayed with ITK and VTK.<BR>> ><BR>> > Thanks for answer,<BR>> ><BR>> > Isabelle<BR>> ><BR>> ><BR>> ------------------------------------------------------------------------<BR>> > *Appel audio GRATUIT partout dans le monde* avec le nouveau Yahoo!<BR>> > Messenger<BR>> > Téléchargez le ici !<BR>> ><BR>> ><BR>> ><BR>> >------------------------------------------------------------------------<BR>> ><BR>> >_______________________________________________<BR>> >Insight-users mailing list<BR>> >Insight-users@itk.org<BR>> >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>