[Insight-users] Need help in executing ScalarImageMarkovRandomField1.exe

Luis Ibanez luis.ibanez at kitware.com
Mon Oct 9 20:06:14 EDT 2006


Hi Gopal,


                       Welcome to ITK !!


Please read the description of this example in the ITK Software Guide

      http://www.itk.org/ItkSoftwareGuide.pdf


In particular
Section 10.4.5 "Classification Using Markov Random Field" in
pdf-pages 723-729.

You will find the source code of this example at:

     Insigth/Examples/Statistics/
         ScalarImageMarkovRandomField1.cxx

Note that at the top of the source file, you will find the input
and parameters that where used for generating the examples shown
in the ITK Software Guide.

In this case, they are:

   INPUTS: {BrainT1Slice.png}, {BrainT1Slice_labelled.png}
   OUTPUTS: {ScalarImageMarkovRandomField1Output.png}
   50 3 3 14.8 91.6 134.9


Please note also that the pixel type defined in line 120,
is "signed short", therefore you need an image viewer that
will rescale the intensities of the output files.


Do not use the naive image viewers that come with Windows.

You should use something like "display" from ImageMagick
(and normalize the image after loading), or you should use
the ImageViewer that comes with InsightApplications/ImageViewer,
or you could use VTK and set the Window/Level values in order
to reach the intensity range of 0-255.

Your current output image probably already have a correct
image inside, that you are not able to see because your
viewer does not rescale the intensities.


    Regards,



       Luis


----------------------
Gopal Karemore wrote:
> Hi!
>  
> Iam new in ITK .*could you plz help me out as I am not getting the 
> requirement of Input parameter of ScalarImageMarkovRandomField1.exe. I 
> am not able to get the o/p even if i initialized segmentation with 
> k-means model estimator. I only get is Blank screen. What is the 
> constraint of radius here.....and smoothing factor.*
> ** 
>  
>  
> Regards
> K.Gopal
>  
>  
>  
>  
> Regards
> K.Gopal
>  
> ///////////////////////////////////////////////
> Philips Medical System - Ultrasound
> Philips Innovation Campus
> Manyata Tech Park, Nagavara
> Bangalore - 560045
>  
> Tel : +91-80-4189 0000 Extn: 1329
> Mob: +91-9900216886
> Website: www.goops.9k.com <http://www.goops.9k.com>
> ///////////////////////////////////////////////
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users




More information about the Insight-users mailing list