[Insight-users] Help with extracting curves from an angiogram
Luis Ibanez
luis.ibanez at kitware.com
Tue Dec 6 09:53:47 EST 2005
Hi Ifeoma,
Since the only thing that you are doing differently is to write
your image data into an image, that's probably what you are
doing wrong.
Could you please post the code that you are using for loading
your image into an ITK image ?
Also, Please add a ImageFileWriter and try to save your ITK image
as soon as you are done with the process of importing it from
memory. In this way you will be able to double check if the
image was imported correctly.
You should also add a Try/Catch block around the line where you
are detecting the crash. It is quite likely that an exception is
being thrown. You will find many examples on how to write try/catch
block in the ITK Software Guide
http://www.itk.org/ItkSoftwareGuide.pdf
BTW:
WHAT VERSION OF ITK ARE YOU USING ?
Please let us know,
Thanks,
Luis
--------------------
Ifeoma Nwogu wrote:
> Hello,
>
> I'm trying to use the code that was written code for 2D Curve Extraction
> application (ceExtractorConsoleBase and ceExtractorConsoleBase classes) but
> once I try to call the line
>
> m_ScalarProduct->SetInput2(m_Eigen->GetMaxEigenVector());
> and m_Eigen is of type
> itk::EigenAnalysis2DImageFilter< ImageType, ImageType, VectorImageType >
>
> my application crashes because of the m_Eigen filter! I am using VC++ 7.1
> compiler, I went through the tutorials online and successfully implemented a
> simpe ITK program.
>
> The only thing I think I'm doing differently from the code online is writing
> my pixel values into an image pointer instead of using a reader (my images are
> already loaded in memory).
>
> Please let me know if you have any ideas on what could be wrong here. Thank
> you!
>
> Ifeoma
>
>
>
>
>
> _______________________________________________
> 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