<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lib.itk.user">
    <title>gmane.comp.lib.itk.user</title>
    <link>http://blog.gmane.org/gmane.comp.lib.itk.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/41004"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/41003"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/41002"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/41001"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/41000"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40999"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40998"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40997"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40996"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40995"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40994"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40993"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40992"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40991"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40990"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40989"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40988"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40987"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40986"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lib.itk.user/40985"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/41004">
    <title>Re: Problem grafting a C++ array as an ImageToImageFilter output</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/41004</link>
    <description>&lt;pre&gt;Hi Ramon,

The approach of using SetImportPointer on the Output is not guaranteed
to work.  The assumption is that the ImageToImageFilter is creating
its Output.  It is more reliable to copy the produced Output to the
buffer.

HTH,
Matt

On Fri, May 24, 2013 at 7:16 PM, Ramón Casero Cañas &amp;lt;rcasero-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

&lt;/pre&gt;</description>
    <dc:creator>Matt McCormick</dc:creator>
    <dc:date>2013-05-26T01:33:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/41003">
    <title>★ insight-users, Dženan Zukić left a message for you</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/41003</link>
    <description>&lt;pre&gt;Dženan Zukić left a message for you

Its sender and content will be shown only to you and you can delete it at any time. You can instantly reply to it, using the message exchange system. To find out what was written to you, just follow this link:
http://eu1.badoo.com/0324619268/in/9UNpCCbWiX0/?lang_id=106&amp;amp;g=57&amp;amp;m=21&amp;amp;mid=51a0dae200000000006a000001b147e200b946610180



If clicking the links in this message does not work,
copy and paste them into the address bar of your browser.

This email is a part of delivering a message sent by Dženan Zukić on the system. If you received this email by mistake, please just ignore it. After a short time the message will be removed from the system.

Have fun!
The Badoo Team

You have received this email from Badoo Trading Limited (postal address below).
http://eu1.badoo.com/impersonation.phtml?lang_id=106&amp;amp;email=insight-users%40vtk.org&amp;amp;block_code=b165b0&amp;amp;m=21&amp;amp;mid=51a0dae200000000006a000001b147e200b946610180

Badoo Trading Limited is a limited company registered in England and Wales
under CRN 7540255 with its registered office at Media Village, 131 - 151 Great Titchfield Street, London, W1W 5BB._____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Badoo</dc:creator>
    <dc:date>2013-05-25T15:38:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/41002">
    <title>AtlasSegmentation</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/41002</link>
    <description>&lt;pre&gt; Hello!
 I am trying to run the AtlasSegmentation code from InsightApplication-1.80/IBSRValidation, but the programe cannot execute rightly. When the programe execute to "Label image using atlas", it just stop there and cannot execute any longer. I feel puzzled. Please tell me the reason.
 Thank you!
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

&lt;/pre&gt;</description>
    <dc:creator>wynjseu-u2tTgNRCH2jM1kAEIRd3EQ&lt; at &gt;public.gmane.org</dc:creator>
    <dc:date>2013-05-25T06:01:04</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/41001">
    <title>Problem grafting a C++ array as anImageToImageFilter output</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/41001</link>
    <description>&lt;pre&gt;Hi all,

I think there may be some problem with some of the itk::ImageToImageFilter
when one tries to graft a C++ array to be used as the filter's output, or
at least with the way I do it.

This was kindly reported by Peter Thalmann in [1], and I'm trying to help
him. This is a problem that I had also noticed with a couple of other
filters.

I have attached a minimal example of a C++ MEX file that creates a function
that can be run from Matlab, with the CMake files to compile it. (I have
tried this with ITK 4.3.1).

Save everything to directory test, and then build the example from the shell

cd test
mkdir bin
cd bin
cmake ..
make install

To run the example from Matlab,

cd test
% create a test binary square with a little hole
im = zeros(15, 15, 'uint8');
im(3:13, 3:13) = 1;
im(7:8, 7) = 0;
im2 = itk_test(im);

This runs filter itk::VotingBinaryIterativeHoleFillingImageFilter on the
image. The program outputs to the Matlab shell both the content of
filter-&amp;gt;GetOutput(), and the content of the Matlab output array. As we can
see, the output is not being saved to the array

Filter result, reading from the filter
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Filter result, reading from the Matlab output array
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0


But this approach works for other filters. If we choose the Median filter
instead: in ItkTestSimpleImFilter.cpp, ucomment

  // typedef itk::MedianImageFilter&amp;lt;ImageType, ImageType&amp;gt;
  //   FilterType;

and comment out

  typedef itk::VotingBinaryIterativeHoleFillingImageFilter&amp;lt;ImageType&amp;gt;
    FilterType;

[...]

  // filter parameters only for the
VotingBinaryIterativeHoleFillingImageFilter
  filter-&amp;gt;SetMaximumNumberOfIterations(4);
  filter-&amp;gt;SetBackgroundValue(0);
  filter-&amp;gt;SetForegroundValue(1);
  filter-&amp;gt;SetMajorityThreshold(2);

then we can see that the array is actually being used as the filter's output

Filter result, reading from the filter
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 1 1 1 1 1 1 1 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 0 1 1 1 1 1 1 1 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Filter result, reading from the Matlab output array
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 1 1 1 1 1 1 1 1 1 0 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 0 1 1 1 1 1 1 1 1 1 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

I have been looking at itkVotingBinaryIterativeHoleFillingImageFilter.hxx,
and I was wondering whether the problem is in
VotingBinaryIterativeHoleFillingImageFilter&amp;lt; TInputImage &amp;gt;
::GenerateData().

The filter works iteratively, doing

  while ( m_CurrentNumberOfIterations &amp;lt; m_MaximumNumberOfIterations )
    {
    filter-&amp;gt;SetInput(input);
    filter-&amp;gt;Update();

    m_CurrentNumberOfIterations++;
    progress.CompletedPixel();   // not really a pixel but an iteration
    this-&amp;gt;InvokeEvent( IterationEvent() );

    const unsigned int numberOfPixelsChangedInThisIteration =
      filter-&amp;gt;GetNumberOfPixelsChanged();
    m_NumberOfPixelsChanged += numberOfPixelsChangedInThisIteration;

    output = filter-&amp;gt;GetOutput();
    output-&amp;gt;DisconnectPipeline();
    input = output;
    if ( numberOfPixelsChangedInThisIteration == 0 )
      {
      break;
      }
    }
  this-&amp;gt;GraftOutput(output);


Here, output gets a DisconnectPipeline(). I have tried commenting that like
out, rebuilding and reinstalling ITK, but it doesn't seem to make a
difference.

[1]
https://groups.google.com/forum/?fromgroups#!topic/gerardus-users/pLH0iR0H74o

Best regards,

Ramon.




&lt;/pre&gt;</description>
    <dc:creator>Ramón Casero Cañas</dc:creator>
    <dc:date>2013-05-24T23:16:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/41000">
    <title>Re: HOW DO I BUILD ITK-SNAP</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/41000</link>
    <description>&lt;pre&gt;Hi,

Unfortunately not :( , have you any idea how to compile it?

I found a link where I download the application ITK-SNAP.exe :
http://sourceforge.net/projects/itk-snap/files/itk-snap/2.4.0/
http://sourceforge.net/p/itk-snap/src/ci/master/tree/

thank you


2013/5/24 Zarko &amp;lt;zarko-D75R7NkCqfQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt;

_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Cary lorey</dc:creator>
    <dc:date>2013-05-24T22:50:37</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40999">
    <title>Re: ITK Apps - How to create 3D image ???</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40999</link>
    <description>&lt;pre&gt;Are you trying to create a 3D volume from a bunch of 2D images?
You might find the following very useful:
https://sites.google.com/site/pierrefillard/coding-blog/createa3dvolumefromseveral2dimages



On Fri, May 24, 2013 at 10:57 AM, Zarko &amp;lt;zarko-D75R7NkCqfQ&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:




&lt;/pre&gt;</description>
    <dc:creator>Xiaoxiao Liu</dc:creator>
    <dc:date>2013-05-24T15:20:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40998">
    <title>Re: HOW DO I BUILD ITK-SNAP</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40998</link>
    <description>&lt;pre&gt;Hi Cary.

Have you succeeded in running the ITK SNAP ?

Z



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/HOW-DO-I-BUILD-ITK-SNAP-tp7583102p7583161.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

&lt;/pre&gt;</description>
    <dc:creator>Zarko</dc:creator>
    <dc:date>2013-05-24T15:03:52</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40997">
    <title>ITK Apps - How to create 3D image ???</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40997</link>
    <description>&lt;pre&gt;Few of ITK Apps such as Fast Marching Segmentation Level Set requires as
input 3 D image with at least 10 pixel in all dimensions. Is there in ITK
examples, ITK tests or in ITKApps some solution which can be used to convert
set of images, dicoms, into one 3D image that i can further use in ITKApps
???

Regards

Z



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/ITK-Apps-How-to-create-3D-image-tp7583160.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

&lt;/pre&gt;</description>
    <dc:creator>Zarko</dc:creator>
    <dc:date>2013-05-24T14:57:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40996">
    <title>Re: RGBImageType to FloatImageType witCastImageFilter</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40996</link>
    <description>&lt;pre&gt;Hello,

You may need some of the operations available in here:

http://www.insight-journal.org/browse/publication/780

I have not done this in ITK my self. But you would need to convert to a color space such as Luv, then process just he L channel, then convert back to RGB.

Alternatively, you can just process the channel as 3 independent components, by running the filter on each component. SimpleITK does this automatically for VectorImages

https://github.com/SimpleITK/SimpleITK/blob/master/TemplateComponents/ExecuteInternalVectorImages.cxx.in#L34

I know I have seen a Wiki example which does a very simular thing too:

http://www.itk.org/Wiki/ITK/Examples

Brad

On May 24, 2013, at 8:50 AM, chasank &amp;lt;chasank-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:


_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

&lt;/pre&gt;</description>
    <dc:creator>Bradley Lowekamp</dc:creator>
    <dc:date>2013-05-24T13:05:44</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40995">
    <title>Re: Peel an image</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40995</link>
    <description>&lt;pre&gt;Gib,

What was the morphological operation you were doing?

ITK's grayscale morph operations are great. However, you need to keep in mind the cost of the different shapes of structuring elements. Unfortunately the binary methods use are single threaded algorithm with a complexity dependent on the number of boundary pixel. I am guessing this the algorithm you were using. If you have a binary image you should actually be able to use the grayscale morp ops to get the same results!

I am a little hesitant to share this because I haven't used it for a bit, so I'm not certain of it's current state. I spent a little time writing a new binary morph algorithm. It's only works for crosses and box/flat structuring elements. But one thread to one thread compared to the current algorithm is was more than 10X faster, and it didn't take much longer O(Radius/32) for larger structuring elements. It's also multi-threadeded so you could easily get 100X speedup compared to the current version. I've  had similar sized data set that I could run binary morphological operations in like a minute.

Also keep in mind you can resample to a lower resolution for some of these larger structures, when a course segmentation is needed.

Brad

On May 23, 2013, at 5:58 PM, Gib Bogle &amp;lt;g.bogle-1/NbpDiVQt6SYBAHRPvY1A&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:


_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Bradley Lowekamp</dc:creator>
    <dc:date>2013-05-24T12:54:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40994">
    <title>Re: RGBImageType to FloatImageType witCastImageFilter</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40994</link>
    <description>&lt;pre&gt;Thanks for quick answers. Yes I've used the RGBToLuminanceImageFilter before
processing the blur filter. However I'm dealing with an another problem,
After converting original RGB image to grayscale image. How can I obtain its
original color map for converting grayscale to RGB ?

typedef itk::Image&amp;lt; itk::RGBPixel &amp;lt;unsigned char&amp;gt;,  2 &amp;gt;  RGBImageType;
typedef itk::Image&amp;lt; unsigned char, 2&amp;gt;                    ScalarImageType;

int main(int argc, char **argv)
{
    try
    {
        itk::ImageFileReader &amp;lt; RGBImageType &amp;gt;::Pointer reader =
                itk::ImageFileReader &amp;lt; RGBImageType &amp;gt;::New();
        itk::JPEGImageIO::Pointer jpegIO = itk::JPEGImageIO::New();
        reader-&amp;gt;SetFileName("./sample.jpg");
        reader-&amp;gt;SetImageIO(jpegIO);
        reader-&amp;gt;Update();
        
        RGBImageType::Pointer image;

        itk::RGBToLuminanceImageFilter&amp;lt;RGBImageType,
ScalarImageType&amp;gt;::Pointer luminanceFilter =
                itk::RGBToLuminanceImageFilter&amp;lt;RGBImageType,
ScalarImageType&amp;gt;::New();
        luminanceFilter-&amp;gt;SetInput(reader-&amp;gt;GetOutput());
        luminanceFilter-&amp;gt;Update();

        FilterCallBack::Pointer callBack = FilterCallBack::New();

        itk::BinomialBlurImageFilter&amp;lt; ScalarImageType, ScalarImageType
                itk::BinomialBlurImageFilter &amp;lt; ScalarImageType,
ScalarImageType&amp;gt; ::New();
        blurFilter-&amp;gt;SetInput(luminanceFilter-&amp;gt;GetOutput());
        blurFilter-&amp;gt;AddObserver(itk::ProgressEvent(), callBack);
        blurFilter-&amp;gt;SetRepetitions(3);
        blurFilter-&amp;gt;Update();

        itk::ScalarToRGBColormapImageFilter&amp;lt; ScalarImageType, RGBImageType
                itk::ScalarToRGBColormapImageFilter&amp;lt; ScalarImageType,
RGBImageType&amp;gt;::New();
        colorMapFilter-&amp;gt;SetInput(blurFilter-&amp;gt;GetOutput());
       
colorMapFilter-&amp;gt;SetColormap(itk::ScalarToRGBColormapImageFilter&amp;lt;ScalarImageType,
RGBImageType&amp;gt;::Jet); // Something like reader-&amp;gt;GetOutput()-&amp;gt;GetColorMap()
???
        colorMapFilter-&amp;gt;Update();

        QuickView view;

        view.AddRGBImage(reader-&amp;gt;GetOutput(), true, "Original");
        view.AddRGBImage(colorMapFilter-&amp;gt;GetOutput(), true, "Blur
Filtered");
        view.Visualize();

    }
    catch ( itk::ExceptionObject &amp;amp;exception)
    {
        std::cerr &amp;lt;&amp;lt; exception &amp;lt;&amp;lt; std::endl;
    }

    return 0;
}



--
View this message in context: http://itk-users.7.n7.nabble.com/RGBImageType-to-FloatImageType-wit-CastImageFilter-tp31552p31554.html
Sent from the ITK - Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

&lt;/pre&gt;</description>
    <dc:creator>chasank</dc:creator>
    <dc:date>2013-05-24T12:50:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40993">
    <title>Re: RGBImageType to FloatImageType witCastImageFilter</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40993</link>
    <description>&lt;pre&gt;Try RGBToLuminanceImageFilter

http://itk.org/Wiki/ITK/Examples/ImageProcessing/RGBToLuminanceImageFilter

Bill



On Fri, May 24, 2013 at 5:02 AM, chasank &amp;lt;chasank-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:




&lt;/pre&gt;</description>
    <dc:creator>Bill Lorensen</dc:creator>
    <dc:date>2013-05-24T11:43:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40992">
    <title>RGBImageType to FloatImageType wit CastImageFilter</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40992</link>
    <description>&lt;pre&gt;Hi,

I'm reading a JPEG Image and trying to process a blur filter
(BinomialBlurImageFilter) on it. Because BinomialBlurImageFilter does not
accept RGBImageType, first I'm trying to convert the RGBImageType to
FloatImageType however I'm getting compiling errors; The sample code is
below; What conversion should I do for processing a RGB Image ?

typedef itk::Image&amp;lt; itk::RGBPixel &amp;lt;unsigned char&amp;gt;,  2 &amp;gt;  RGBImageType;
typedef itk::Image&amp;lt; float, 2 &amp;gt;                                      
FloatImageType;

        itk::VTKImageToImageFilter&amp;lt; RGBImageType &amp;gt;::Pointer converter =
                itk::VTKImageToImageFilter&amp;lt;RGBImageType&amp;gt; :: New();
        converter-&amp;gt;SetInput(this-&amp;gt;image);
        converter-&amp;gt;Update();

        itk::CastImageFilter&amp;lt;RGBImageType, FloatImageType&amp;gt;::Pointer caster =
                itk::CastImageFilter&amp;lt;RGBImageType, FloatImageType&amp;gt;::New();
        caster-&amp;gt;SetInput(converter-&amp;gt;GetOutput());
        caster-&amp;gt;Update();

        itk::BinomialBlurImageFilter&amp;lt; FloatImageType, FloatImageType &amp;gt;
::Pointer blurFilter =
                itk::BinomialBlurImageFilter &amp;lt; FloatImageType,
FloatImageType&amp;gt; ::New();
        blurFilter-&amp;gt;SetInput( caster-&amp;gt;GetOutput() );
        blurFilter-&amp;gt;SetRepetitions(2);
        blurFilter-&amp;gt;Update();

        itk::CastImageFilter&amp;lt;FloatImageType, RGBImageType&amp;gt;::Pointer caster2
=
                itk::CastImageFilter&amp;lt;FloatImageType, RGBImageType&amp;gt;::New();
        caster2-&amp;gt;SetInput(blurFilter-&amp;gt;GetOutput());
        caster2-&amp;gt;Update();

/usr/local/include/ITK-4.3/itkConceptChecking.h: In member function 'void
itk::Concept::Convertible&amp;lt;T1, T2&amp;gt;::Constraints::constraints() [with T1 =
itk::RGBPixel&amp;lt;unsigned char&amp;gt;, T2 = float]':
/usr/local/include/ITK-4.3/itkConceptChecking.h:192:   instantiated from
'itk::Concept::Convertible&amp;lt;itk::RGBPixel&amp;amp;lt;unsigned char&amp;gt;, float&amp;gt;'
/usr/local/include/ITK-4.3/itkCastImageFilter.h:116:   instantiated from
'itk::CastImageFilter&amp;lt;itk::Image&amp;amp;lt;itk::RGBPixel&amp;amp;lt;unsigned char&amp;gt;, 2u&amp;gt;,
itk::Image&amp;lt;float, 2u&amp;gt; &amp;gt;'
../Program/program.cpp:67:   instantiated from here
/usr/local/include/ITK-4.3/itkConceptChecking.h:185: error: invalid
static_cast from type 'itk::RGBPixel&amp;lt;unsigned char&amp;gt;' to type 'float'
/usr/local/include/ITK-4.3/itkCastImageFilter.h: In member function 'TOutput
itk::Functor::Cast&amp;lt;TInput, TOutput&amp;gt;::operator()(const TInput&amp;amp;) const [with
TInput = itk::RGBPixel&amp;lt;unsigned char&amp;gt;, TOutput = float]':
/usr/local/include/ITK-4.3/itkUnaryFunctorImageFilter.hxx:175:  
instantiated from 'void itk::UnaryFunctorImageFilter&amp;lt;TInputImage,
TOutputImage, TFunction&amp;gt;::ThreadedGenerateData(const typename
TOutputImage::RegionType&amp;amp;, itk::ThreadIdType) [with TInputImage =
itk::Image&amp;lt;itk::RGBPixel&amp;amp;lt;unsigned char&amp;gt;, 2u&amp;gt;, TOutputImage =
itk::Image&amp;lt;float, 2u&amp;gt;, TFunction =
itk::Functor::Cast&amp;lt;itk::RGBPixel&amp;amp;lt;unsigned char&amp;gt;, float&amp;gt;]'
../Program/program.cpp:151:   instantiated from here
/usr/local/include/ITK-4.3/itkCastImageFilter.h:83: error: invalid
static_cast from type 'const itk::RGBPixel&amp;lt;unsigned char&amp;gt;' to type 'float'



--
View this message in context: http://itk-insight-users.2283740.n2.nabble.com/RGBImageType-to-FloatImageType-wit-CastImageFilter-tp7583155.html
Sent from the ITK Insight Users mailing list archive at Nabble.com.
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

&lt;/pre&gt;</description>
    <dc:creator>chasank</dc:creator>
    <dc:date>2013-05-24T09:02:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40991">
    <title>Re: Peel an image</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40991</link>
    <description>&lt;pre&gt;Richard, in our images dx=dy=dz, so in principle the closing should work fine in 
3D.  In fact I think the size of our images is going to make it impractical.  I 
ran a test last night on a partial image, which is 1300x1100x200, about 1/5 of a 
full image (still being generated by the microscopy rig).  It was still running 
after 9 hours this morning, when I stopped it, at 100% of the 8 cores on my PC.  
This is not really practical.

I did implement the grayscale closing, but not exactly as in your code.  I've 
been using ITK for a while, but in a very naive way, and writing a lot of my own 
code.  I am not a C++ expert by any means, and in particular I do not know 
anything about templates. It is not important (since I have something that 
works) but if you felt motivated to send me a simple example of a main program 
that calls doClosing() I'm sure I would find it very instructional.

It is not clear to me yet what radius to use for the structuring element.  I've 
tried 30, 40 and 50.  To generate the mask I guess I need to set the threshold 
level to something like 1 or 2 - some experimentation is needed.

To process the whole 3D image I'm thinking about using a slice-by-slice method, 
on the XY slices, then the YZ, then the XZ.  The idea is to process each 2D 
slice as if to peel it, but leaving the image unchanged and just recording all 
the voxels that are to be removed.  The final step will be to zero out all these 
voxels.  I think it is necessary to do it like this to avoid multiple peeling.

It will be interesting to compare the active contour approach with the grayscale 
closing method to generate the mask.

Best regards
Gib

On 23/05/2013 10:04 p.m., Richard Beare wrote:
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Gib Bogle</dc:creator>
    <dc:date>2013-05-23T21:58:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40990">
    <title>Re: Peel an image</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40990</link>
    <description>&lt;pre&gt;Thanks Dan.  The active contour method sounds very interesting, I'll give it a try.

Gib

On 23/05/2013 7:36 p.m., Dan Mueller wrote:
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Gib Bogle</dc:creator>
    <dc:date>2013-05-23T21:29:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40989">
    <title>Re: [ome-users] bioformats and ITK</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40989</link>
    <description>&lt;pre&gt;I got it working.
My local repository doesn't have the new variable SCIFIO_SEP, and it still
uses ":" for separator. I change it to ";" and it works. The program also
works without SCIFIO_PATH being set. So the separator fix should resolve
this issue.

Thanks for you help!
Joe


On Thu, May 23, 2013 at 9:52 AM, Joe Ping-Lin Hsiao &amp;lt;phsiao-+5Oa3zvhR2o3uPMLIKxrzw&amp;lt; at &amp;gt;public.gmane.org&amp;gt;wrote:

_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Joe Ping-Lin Hsiao</dc:creator>
    <dc:date>2013-05-23T14:29:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40988">
    <title>Re: [ome-users] bioformats and ITK</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40988</link>
    <description>&lt;pre&gt;Mark,

Adding the SCIFIO_PATH environment variable doesn't work for me. I
experimented with 'build/lib/jars' and 'build/lib/jars/', but I still have
the same error.
I can wait for the bug fix in ITK to get approved and try again.

Thanks,
Joe


On Wed, May 22, 2013 at 3:00 PM, Mark Hiner &amp;lt;hiner-63mtpxcE9Cs&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Joe Ping-Lin Hsiao</dc:creator>
    <dc:date>2013-05-23T13:52:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40987">
    <title>Re: Bad crop with mouse click</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40987</link>
    <description>&lt;pre&gt;On Wed, May 22, 2013 at 7:28 PM, Cary lorey
&amp;lt;developement.unity-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

It sounds like this is really a VTK question (if your comment that the
right values are not produced by the GetComputedWorldValue function is
correct). Have you seen these examples?

http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel2

David
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users

&lt;/pre&gt;</description>
    <dc:creator>David Doria</dc:creator>
    <dc:date>2013-05-23T11:59:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40986">
    <title>Re: Peel an image</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40986</link>
    <description>&lt;pre&gt;The steps I've given should also work in 3D if the slice thickness is low
enough to provide the connectivity between slices. Personally, I haven't
had much luck with the vesselness family. My rule of thumb is that if they
happen to work, then a simple morphological approach will probably work
too, more reliably and with fewer parameters to fiddle :-).


On Thu, May 23, 2013 at 5:36 PM, Dan Mueller &amp;lt;dan.muel-Re5JQEeQqe8AvxtiuMwx3w&amp;lt; at &amp;gt;public.gmane.org&amp;gt; wrote:

_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Richard Beare</dc:creator>
    <dc:date>2013-05-23T10:04:39</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40985">
    <title>Re: Peel an image</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40985</link>
    <description>&lt;pre&gt;Hi Gib,

Some more food for thought:

(1) If you have a 3D image (as opposed to 2D slices) you may consider
using Hessian-based vesselness enhancement:
http://www.itk.org/Doxygen/html/classitk_1_1Hessian3DToVesselnessMeasureImageFilter.html
http://www.itk.org/Doxygen/html/classitk_1_1MultiScaleHessianBasedMeasureImageFilter.html
http://www.insight-journal.org/browse/publication/314
http://www.insight-journal.org/browse/publication/175
http://www.insight-journal.org/browse/publication/163

This class of filters can enhance tube-like structures (e.g. vessels),
while suppressing sheet like structures i.e. the outer border of your
object.

(2) You could consider using an active contour method to segment the
outer structure (replacing step 1 in Richard's proposal above). You
could achieve this by initializing the contour as the edge of your
image, then shrink the contour until it attaches to the boundary of
the tissue. Then continue to follow Richard's second step and remove
the outer structure by erosion + masking.

Good luck.

Cheers, Dan

On 23 May 2013 11:16, Gib Bogle &amp;lt;g.bogle&amp;lt; at &amp;gt;auckland.ac.nz&amp;gt; wrote:
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://www.itk.org/mailman/listinfo/insight-users
&lt;/pre&gt;</description>
    <dc:creator>Dan Mueller</dc:creator>
    <dc:date>2013-05-23T07:36:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lib.itk.user/40984">
    <title>Re: Peel an image</title>
    <link>http://permalink.gmane.org/gmane.comp.lib.itk.user/40984</link>
    <description>&lt;pre&gt;Hi Richard,

I don't have other staining.

Thanks for your suggestion of a procedure.  I will have to study it and 
understand it, before I can comment on it.

Gib

On 23/05/2013 12:25 p.m., Richard Beare wrote:


&lt;/pre&gt;</description>
    <dc:creator>Gib Bogle</dc:creator>
    <dc:date>2013-05-23T01:46:49</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lib.itk.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lib.itk.user</link>
  </textinput>
</rdf:RDF>
