[Insight-users] MathematicalMorphologyGrayscaleFilters

Luis Ibanez luis.ibanez at kitware.com
Sun Jun 5 14:29:08 EDT 2011


Hi Robert,

Your code works fine for me.

I made a small modification, only to use the
TimeProbesCollectorBase to compute time
(since your code didn't provide the GetTick.. function).
(modified file attached).


I ran it using as input the image:


ITK/Examples/Data/BrainProtonDensitySlice.png

and both the erosion and dilation outputs look
right at first sight.

---

What are the indications that led you to think
that the code is not working properly ?

Please give us a detailed description of what
you think is the problem.



    Thanks


         Luis

On Fri, Jun 3, 2011 at 9:47 AM, Robert Zaczek <rbtzck at o2.pl> wrote:
> Hello everyone.
> I'm new to ITK and I was testing some of the examples provided in
> \Examples\Filtering.
> Particular example that I have problem with is
> MathematicalMorphologyGrayscaleFilter.
> Originally it was written for reading and writing unsigned char images.
> I modified it to read float images and write unsigned char, but my
> modification doesn't work.
> Can anyone help?
>
> Regarded file is attached
>
> _____________________________________
> 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.html
>
> 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
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MathematicalMorphologyGrayscaleFilters.cpp
Type: text/x-c++src
Size: 10316 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110605/27ac2add/attachment.cpp>


More information about the Insight-users mailing list