[Insight-users] Black output images (again) [ still ]

Luis Ibanez luis.ibanez at kitware.com
Sat Feb 24 11:44:39 EST 2007


Hi Christian,


Thanks for posting the image that you are using.


You are simply having trouble selecting good parameters
for this image.

For example, notice that the intensities are in the range
of 10,000 to 30,000 units.


I slightly modified your program for taking now all
the values from the command line.


Please find attached the modified source code.



With this version I can get a section of the White matter
by providing the following command line arguments:



  RegionGrowing    13_3.hdr   whiteMatter.mhd
                   20000 30000 255   100 30 164


(all  in a single line)



The parameters are:

lower threshold = 20000
upper threshold = 30000

replace value = 255

index of the seed point

(100,30,164)

These are the index coordinates of a pixel inside
the white matter.




Please try this attached source code with the parameters
above and let us know if that works for you.

Once you verify that the code is working, you may want to use
different parameters for extracting other brain structures.



    Regards,



       Luis




--------------------------
rieck at stud.ntnu.no wrote:
>> Please find attached the modified version of your code
>> that now works fine for me.
>>
>>
>> If you run this in the command line with the following
>> arguments you will get the segmentation of the ventricles.
>>
>> ./RegionGrowing.exe brainweb165a10f17.mhd output.mhd 10 60 255
>>
> 
> The closest thing I came was "brainweb165a10f17.mha", not mhd. Anyway,  
> the code processed the mha file as well. I wrote it out as a mhd. The  
> result from this in VolView is shown in  
> http://www.idi.ntnu.no/~rieck/bilde/itk/ as mhdRes.PNG. (VolView and  
> imageJ were not sure how to display it and had to guess. I doubt this  
> is correct, but it contains colors.)
> 
> However, my file is still black. Could you be so kind as to try it? It  
> is the 13_3.hdr and 13_3.img in the same directory as above. I only  
> reply to you since I am probably violating some copyrights. Better to  
> do that at a small scale. Your code is also at the same location, in  
> case you deleted it.
> 
> As you can se from the comments in the code, I also tried another  
> filter for segmentation. Still black.
> 
>>
>> Note that in the source code, the position of the seed
>> point was modified too in order to match the actual
>> position of the ventricles in the brainweb165a10f17.mhd
>> dataset.
>>
> 
> noted
> 
> 
> regards,
> Christian.
> 
> 
========================================================


-------------- next part --------------
A non-text attachment was scrubbed...
Name: RegionGrowing.cxx
Type: text/x-c++src
Size: 3786 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/insight-users/attachments/20070224/7c578bdf/RegionGrowing.cxx


More information about the Insight-users mailing list