<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Since ItkVtkGlue displaying an image is quite easy:<br>
<br>
-----------------<br>
<br>
#include <itkImageFileReader.h><br>
<br>
#include "QuickView.h"<br>
<br>
int main(int argc, char **argv) {<br>
<br>
typedef itk::Image< unsigned short, 2> ImageType;<br>
typedef itk::ImageFileReader<ImageType> ReaderType;<br>
<br>
ReaderType::Pointer reader = ReaderType::New();<br>
reader->SetFileName(argv[1]);<br>
reader->Update();<br>
<br>
QuickView viewer;<br>
viewer.AddImage( reader->GetOutput()); <br>
viewer.Visualize();<br>
<br>
return 0;<br>
}<br>
<br>
<br>
------------------------<br>
<br>
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)<br>
<br>
PROJECT( itkGlue)<br>
<br>
FIND_PACKAGE ( ITK REQUIRED)<br>
INCLUDE( ${USE_ITK_FILE} )<br>
<br>
find_package(ItkVtkGlue REQUIRED)<br>
include(${ItkVtkGlue_USE_FILE})<br>
<br>
INCLUDE_DIRECTORIES(${main_SOURCE_DIR})<br>
<br>
ADD_EXECUTABLE( itkGlue itkGlue.cxx )<br>
<br>
TARGET_LINK_LIBRARIES ( itkGlue ItkVtkGlue ${ITK_LIBRARIES}
${VTK_LIBRARIES})<br>
<br>
<br>
Christina Rossmanith<br>
--<br>
<span
style="font-size:10pt;font-family:"Arial","sans-serif""
lang="EN-GB">Dept. of Neurology</span> <br>
<span
style="font-size:10pt;font-family:"Arial","sans-serif""
lang="EN-GB">University Medical Center Mannheim</span><br>
</body>
</html>