[Insight-users] no exe file after compiling with VC++

Niha G Beig niha.beig at gmail.com
Tue Feb 22 01:20:33 EST 2011


I wanted them to be displayed side by side.
But please do throw some light on how it can be done in the other two ways
as well.. It'll help in the future for my project.
Thank you in advance.


On Tue, Feb 22, 2011 at 4:59 AM, Luis Ibanez <luis.ibanez at kitware.com>wrote:

> Hi Niha,
>
> Do you want to display these two images
>
> A)  Side by Side  ?
> B)  Overlapping with different color channel ?
> C)  Fused by using Alpha-Blending ? (e.g. transparency) ?
>
>
>   Luis
>
>
> ------------------------------------
> On Mon, Feb 21, 2011 at 5:45 AM, Niha G Beig <niha.beig at gmail.com> wrote:
> > Hi Luis,
> > Thank you for replying to my previous post. It is much appreciated.
> > I'm working on Hippocampus Brain Segmentation using ITK and VTK. I'm new
> to
> > these tools and I'm still trying to find my way through it.
> >
> > Now, I have been working with the second manual which tells about
> ITK+VTK. I
> > want to know how we can display both the original image and smoothened
> image
> > together in one VTK window. Is it possible?
> > The code builds without any errors but I must going terribly wrong with
> > my understanding of the concepts because only one image is being
> displayed..
> > #include "itkImage.h"
> > #include "itkImageFileReader.h"
> > #include "itkImageToVTKImageFilter.h"
> > #include "vtkImageViewer.h"
> > #include "vtkRenderWindowInteractor.h"
> > #include "itkCurvatureFlowImageFilter.h"
> > int main(int argc, char **argv)
> > {
> > typedef itk::Image<unsigned short,2>ImageType;
> > typedef itk::ImageFileReader<ImageType>ReaderType;
> > typedef itk::ImageToVTKImageFilter<ImageType>ConnectorType;
> > typedef
> > itk::CurvatureFlowImageFilter<ImageType,ImageType>SmoothingFilterType;
> > ReaderType::Pointer reader=ReaderType::New();
> > ConnectorType::Pointer connector=ConnectorType::New();
> > SmoothingFilterType::Pointer smoother= SmoothingFilterType::New();
> > reader->SetFileName(argv[1]);
> > connector->SetInput(reader->GetOutput());
> > smoother->SetNumberOfIterations(7);
> > smoother->SetTimeStep(0.2);
> > vtkImageViewer * viewer= vtkImageViewer::New();
> > vtkRenderWindowInteractor * renderWindowInteractor=
> > vtkRenderWindowInteractor::New();
> > viewer->SetupInteractor(renderWindowInteractor);
> > viewer->SetInput(connector->GetOutput());
> > viewer->Render();
> > viewer->SetColorWindow(255);
> > viewer->SetColorLevel(128);
> > renderWindowInteractor->Start();
> > smoother->SetInput(reader->GetOutput());
> > viewer->SetupInteractor(renderWindowInteractor);
> > viewer->SetInput(connector->GetOutput());
> > viewer->Render();
> > viewer->SetColorWindow(255);
> > viewer->SetColorLevel(128);
> > renderWindowInteractor->Start();
> > return 0;
> > }
> > Looking forward to hear from you.
> > Regards,
> > Niha
> > On Sun, Feb 20, 2011 at 3:30 AM, Luis Ibanez <luis.ibanez at kitware.com>
> > wrote:
> >>
> >> Hi Niha,
> >>
> >> You will find the executable in the directory:
> >>
> >>     ITK_BINARY_DIR/Release/bin
> >>
> >> or
> >>
> >>     ITK_BINARY_DIR/Debug/bin
> >>
> >>
> >> Depending on the compilation mode that you used (Debug/Release)
> >>
> >>
> >> Where "ITK_BINARY_DIR" is the directory where you compiled your project.
> >>
> >>
> >> Note that you can also simply use the "search" function in Windows
> >> Explorer,
> >>
> >> or
> >>
> >> you can also, in Visual Studio, right click on the name of the
> executable
> >> project, select "properties", select "configuration properties" select
> >> "General" and look at the field "Output Directory".
> >>
> >>
> >>
> >>     Luis
> >>
> >>
> >>
> >> --------------------------------------------------------------
> >> On Sat, Feb 19, 2011 at 3:17 AM, Niha <niha.beig at gmail.com> wrote:
> >> > Erik Türke <erik_tuerke at ...> writes:
> >> >
> >> >>
> >> >>
> >> >> Hello!Well, i wanted to work through the "GettingStarted-II.pdf" from
> >> >> the
> >> > itk.org website, to check out the VTK, but i have the following
> >> > problem.Visual
> >> > Studio C++ 9 is compiling my project without any error. But i cant
> find
> >> > any
> >> > executable file in the bin directory.CMakeLists.txt
> >> > contains:PROJECT(myProject)FIND_PACKAGE ( ITK)IF ( ITK_FOUND)
> >> > INCLUDE(
> >> > ${USE_ITK_FILE} )ENDIF( ITK_FOUND)FIND_PACKAGE ( VTK)IF (
> >> > VTK_FOUND)INCLUDE(
> >> > ${USE_VTK_FILE} )ENDIF(
> >> > VTK_FOUND)INCLUDE_DIRECTORIES(${myProject_SOURCE_DIR})ADD_EXECUTABLE(
> >> > myProject
> >> > myProject.cxx)TARGET_LINK_LIBRARIES (
> >> >
> >> >
> myProjectITKBasicFiltersITKCommonITKIOvtkRenderingvtkGraphicsvtkHybridvtkImaging
> >> > vtkIOvtkFilteringvtkCommon)and myProject.cxx contains:#include
> >> > "itkImage.h"#include "itkImageFileReader.h"#include
> >> > "itkImageToVTKImageFilter.h"#include "vtkImageViewer.h"#include
> >> > "vtkRenderWindowInteractor.h"intmain( intargc, char **argv) {
> typedef
> >> > itk::Image<unsigned short,2> ImageType;    typedef
> >> > itk::ImageFileReader<ImageType> ReaderType;    typedef
> >> > itk::ImageToVTKImageFilter<ImageType> ConnectorType;
> >> > ReaderType::Pointerreader= ReaderType::New();
> >> > ConnectorType::Pointerconnector= ConnectorType::New();
> >> > reader->SetFileName(
> >> > argv[1]);    connector->SetInput( reader->GetOutput() );
> >> > vtkImageViewer*
> >> > viewer= vtkImageViewer::New();    vtkRenderWindowInteractor*
> >> > renderWindowInteractor=    vtkRenderWindowInteractor::New();
> viewer-
> >> >>SetupInteractor( renderWindowInteractor);    viewer->SetInput(
> >> >> connector-
> >> >>GetOutput() );    viewer->Render();    viewer->SetColorWindow( 255);
> >> >> viewer-
> >> >>SetColorLevel( 128);    renderWindowInteractor->Start();    return
> >> >> 0;}Creating
> >> > an only ITK project works without any problem.Someone has an
> >> > idea??Thanks for
> >> > your help.Trete mit Deinem inneren Athleten in Verbindung. Beantworte
> >> > die
> >> > Fragen!
> >> >>
> >> >>
> >> >> _______________________________________________
> >> >> Insight-users mailing list
> >> >> Insight-users at ...
> >> >> http://www.itk.org/mailman/listinfo/insight-users
> >> >>
> >> >
> >> > I'm facing the same problem now. Did you figure out how its done?
> >> > Regards,
> >> > Niha
> >> >
> >> >
> >> > _____________________________________
> >> > Powered by www.kitware.com
> >> >
> >> > Visit other Kitware open-source projects at
> >> > http://www.kitware.com/opensource/opensource.html
> >> >
> >> > Kitware offers ITK Training Courses, for more information visit:
> >> > http://www.kitware.com/products/protraining.html
> >> >
> >> > Please keep messages on-topic and check the ITK FAQ at:
> >> > http://www.itk.org/Wiki/ITK_FAQ
> >> >
> >> > Follow this link to subscribe/unsubscribe:
> >> > http://www.itk.org/mailman/listinfo/insight-users
> >> >
> >
> >
> >
>



-- 
Niha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110222/798be4cf/attachment.htm>


More information about the Insight-users mailing list