[Insight-users] ConnectedThresholdImageFilter does take into accopunt the configuration
Michael Jackson
mike.jackson at bluequartz.net
Tue Oct 13 10:16:47 EDT 2009
On Oct 13, 2009, at 9:16 AM, Daanen Vincent wrote:
> TItkImage::Pointer l_pItkImg = l_pImportFilter->GetOutput();
I don't think that line is correct..
That line should be:
TItkImage* l_pItkImg = l_pImportFilter->GetOutput();
and when you leave the method that pointer will be deleted by the
smart pointer that is wrapping it. I would instead actually return the
l_pImportFilter instead. Then in the calling code you can get at the
raw pointer, or buffer or what ever it is that you need from it.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
More information about the Insight-users
mailing list