[Insight-users] Problem building Examples/Filtering
Luis Ibanez
luis.ibanez at kitware.com
Fri Jul 2 10:28:33 EDT 2004
Hi Jonathan,
Thanks for pointing this out.
This issue was entered as Bug #968 in the bug tracking database.
http://www.itk.org/Bug/bug.php?op=show&bugid=968&pos=0
A fix has been cvs commited for this in the four applications
- FastMarchingLevelSets
- ShapeDetectionLevelSets
- GeodesicActiveContoursLevelSets
- ThresholdSegementationLevelSets
Please update your CVS checkout in order to get the fixes.
The error message should now appear as a popup window and wait
for you to click in an OK button.
Let us know if you find any further problem,
Thanks
Luis
----------------------------
Jonathan Lok-Chuen Lo wrote:
> Hi Luis,
>
> Thank you very much, and it does solve my problem. Actually, I have got
> another questions in the InsightApplications where I am not sure whether to
> post in the list or not. So I thought I might ask you directly.
>
> When I tried to run InsightApplications/GeodesicActiveContour and the
> application seems to fail to load images into it (i.e. I cannot display the
> images). Then, I trace through the code and found that in line 128 of
> GeodesicActiveContourBase.cxx, there exists the following check:
>
> for(unsigned int i=0; i<ImageDimension; i++)
> {
> if( size[i] < 10 )
> {
> this->ShowStatus("Image must be 3D and with at least 10 pixels along
> each Dimension.");
> }
> return;
> }
>
> where the return statement does not return in the correct place, i.e. it
> returns even if size is greater than 10. I have moved return statement
> inside the if statement, but now the problem is that if any size is less
> than 10, the error message is only briefly shown, and then a "Input Image
> Loaded" message is shown (by GeodesicActiveContour::LoadInputImage that it
> returns to). I thought I might flag this to you.
>
> Thanks!
>
> With regards,
> Jonathan
>
>
>
> -----Original Message-----
> From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
> Sent: 30 June 2004 01:36
> To: Jonathan Lok-Chuen Lo
> Cc: ITK User Mailing List
> Subject: Re: [Insight-users] Problem building Examples/Filtering
>
>
>
> Hi Jonathan,
>
> You are probably trying to configure the subdirectory Examples/Filtering
> directly with CMake. That will not work. You must configure from the Top of
> the Insight directory.
>
> If you really want to use the examples outside the
> ITK source tree, the you *must* read the instructions
> on the tutorial sessions:
>
> http://www.itk.org/HTML/Tutorials.htm
>
> In particular in
>
> http://www.itk.org/CourseWare/Training/GettingStartedI-WebPage/index.htm
>
> where it is explained how to use ITK from an external
> project. There you will find how to write a CMakeLists.txt
> file in order to configure an example outside of the ITK
> source tree.
>
> You are also encouraged to look at the Welcoming package:
>
> http://www.itk.org/HTML/Welcome.htm
>
>
>
> Please let us know if you have further questions,
>
>
> Thanks,
>
>
>
> Luis
>
>
>
> -------------------------
> Jonathan Lok-Chuen Lo wrote:
>
>
>>Hi all,
>>
>>I have tried to compile the example codes in Examples/Filtering using
>>VS7. However, I have problems compiling the generated code, it seems
>>that it cannot see the header files of the ITK library. I need to add
>>the following line into the CMakeLists.txt to make it work:
>>
>>INCLUDE_DIRECTORIES( ${ITK_SOURCE_DIR} )
>>
>>Is this a problem with the setup when I build my ITK library?
>>
>>Thanks for your time!
>>
>>Jonathan
>>
>>
>>*************************************
>>Jonathan Lok-Chuen Lo
>>
>>Medical Vision Labortory
>>Department of Engineering Science
>>Oxford University
>>Parks Road
>>Oxford OX1 3PJ
>>
>>Phone: (44) 1865 280940
>>Fax: (44) 1865 280922
>>*************************************
>>
>>
>>
>>
>>_______________________________________________
>>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