[Insight-users] Problem with Saving a segmented object

Cameron Burnett w_e_b_m_a_s_t_e_r_6_9 at hotmail.com
Thu Apr 3 11:11:15 EDT 2008


Hi,

I've just implemented a mix of the DicomSeriesReadImageWrite2 and ConfidenceConnected algorithm examples for region growing segmentation. So basically, I want to segment a DICOM file and then save it as vtk or a similar file format (Unless there is a better way that anyone knows of).

The problem is that once I run the segmentation it takes 10 minutes in order to spit an error message back.

So what is it doing? Well, my program gets through to the execution of the writer pipeline quite quickly (writer->Update() ). After that the cpu is maxed out at 100% and my RAM is practically maxed out also (I have 2GB, and 360MB is taken up once I load my DICOM file onto the screen via the raycast method). Then after about 10 minutes I get an error in itkProcessObject.cxx. This is in the ProcessObject::UpdateOutputData function, where it calls  this->GenerateData(). When I mouse-over the exception in vc++ it says something about failing to allocate memory for the file.

I originally thought it had something to do with pixel type casting, because the pre-segmentation smoothing requires a float pixel type and I had just left it as float for the rest also. Then I tried casting it back to "signed short" before the segmentation stage.... but that did the same. 10 minutes is a long time to wait to see if a small change works.

So the main question is.... should it take 10 minutes for a 2GHz dual core cpu (with 2GB ram) to do region growing segmentation (then die, lol). Btw, the DICOM files are about 170MB for the whole 342 of them (about 500KB each file). 

Also, if anyone knows whats going on, or would like to request more information, then that would be great. I'm not expecting much though. 



_________________________________________________________________
Are you paid what you're worth? Find out: SEEK Salary Centre
http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fninemsn%2Eseek%2Ecom%2Eau%2Fcareer%2Dresources%2Fsalary%2Dcentre%2F%3Ftracking%3Dsk%3Ahet%3Asc%3Anine%3A0%3Ahot%3Atext&_t=764565661&_r=OCT07_endtext_salary&_m=EXT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080404/3dbcc421/attachment.htm>


More information about the Insight-users mailing list