[Insight-users] I need to separate DicomImageViewer

Rupert Brooks rupe.brooks at gmail.com
Thu Jun 19 09:01:01 EDT 2008


Hi Esther,

I have not tried DICOMviewer, but i have separated out the ImageViewer
from insight apps before.  I imagine DICOMImage viewer is similar.
Basically, you need to build the FLTKImageViewer as well as the main
ImageViewer, and add the lines to find FLTK and ITK to the
CMakeLists.txt for the ImageViewer project

Thats short on details - a download that should build in release mode
on its own (assuming ITK and FLTK are available) is available here

http://www.cim.mcgill.ca/~rbrook/downloads/ImageViewer.zip

NOTE that this image viewer has two modifications - I added a line to
ImageViewer.cxx to register the MINC file type, so that it would load
minc files.  If you dont have ITK built with MINC support (its in the
review directory), then you should probably comment out the part

// register minc, its not already registered
    ObjectFactoryBase::RegisterFactory( MINC2ImageIOFactory::New() );

and remove the lines in CMakeLists that link against MINC and HDF.

Also, I use the CMAKE_DEBUG_POSTFIX technique to separate release and
debug builds.  So this expects the debug ITK and FLTK libs to have a
"d" extension.  You will see a bunch of stuff in the CMakeLists that
deals with that.  Dont bother with it in yours if that does not fit
your situation.   Specifically, you may need to remove the lines

SET(CMAKE_DEBUG_POSTFIX "d")
SET(ITK_NO_LIBRARY_DEPENDS 1)
and...
SET(ITKLIBS optimized ITKStatistics ..... etc

Hopefully the download will give you enough info to pull out
DICOMImageViewer.  If you end up with a nice clean (ie, without all my
wierd modifications) CMakeLists for that project, please do post it to
the list, i am sure other people would find it useful.

Rupert

On Thu, Jun 19, 2008 at 7:19 AM, Kendra <kendracorreo at gmail.com> wrote:
> Please, if it was possible, can anybody tell me how can I separate the
> application DicomImageViewer (and FLTKImageviewer) apart of Insight
> Applications? I need integrate the dicomViewer with other application that I
> have implemented. How it will be the cmakelists.txt?
> Thanks.
>
> --
> Esther.
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>



-- 
--------------------------------------------------------------
Rupert Brooks
McGill Centre for Intelligent Machines (www.cim.mcgill.ca)
Ph.D Student, Electrical and Computer Engineering
http://www.cyberus.ca/~rbrooks


More information about the Insight-users mailing list