96 lines
2.1 KiB
C++
96 lines
2.1 KiB
C++
#pragma once
|
|
|
|
#include <vtkSmartPointer.h>
|
|
#include <vtkImageReader2Factory.h>
|
|
#include <vtkImageReader2.h>
|
|
#include <vtkAssemblyPath.h>
|
|
#include <vtkCell.h>
|
|
#include <vtkCommand.h>
|
|
#include <vtkCornerAnnotation.h>
|
|
#include <vtkDataArray.h>
|
|
#include <vtkDICOMImageReader.h>
|
|
#include <vtkImageActor.h>
|
|
#include <vtkImageData.h>
|
|
|
|
#include "infinitiViewer.h"
|
|
#include <vtkImageChangeInformation.h>
|
|
#include <vtkInteractorStyleImage.h>
|
|
#include <vtkPointData.h>
|
|
#include <vtkPropPicker.h>
|
|
#include <vtkRenderer.h>
|
|
#include <vtkRenderWindow.h>
|
|
#include <vtkRenderWindowInteractor.h>
|
|
#include <vtkTextProperty.h>
|
|
#include <vtkNamedColors.h>
|
|
|
|
//screenshot
|
|
#include <vtkWindowToImageFilter.h>
|
|
#include <vtkImageCast.h>
|
|
#include <vtkPNGWriter.h>
|
|
|
|
//for blending
|
|
#include <vtkImageBlend.h>
|
|
#include <vtkImageMapToColors.h>
|
|
#include <vtkLookupTable.h>
|
|
|
|
#include <vtkCallbackCommand.h>
|
|
//#include <itkImageToVTKImageFilter.h>
|
|
//
|
|
//#include "itkCommand.h"
|
|
//
|
|
//#include <itkImage.h>
|
|
//#include <itkImageFileReader.h>
|
|
//
|
|
//#include <itkImageToVTKImageFilter.h>
|
|
|
|
//#include "vtkVersion.h"
|
|
//#include "vtkImageViewer.h"
|
|
//#include "vtkImageMapper3D.h"
|
|
//#include "vtkRenderWindowInteractor.h"
|
|
//#include "vtkSmartPointer.h"
|
|
//#include "vtkImageActor.h"
|
|
//#include "vtkInteractorStyleImage.h"
|
|
//#include "vtkRenderer.h"
|
|
//#include "itkRGBPixel.h"
|
|
|
|
//#define NUM_CLASSES 3
|
|
//#define MAX_NUM_ITER 1
|
|
|
|
//#include "itkImageFileReader.h"
|
|
//#include "itkImageFileWriter.h"
|
|
|
|
//newly added
|
|
#include <vtkCamera.h>
|
|
#include <vtkOpenGLRenderWindow.h>
|
|
#include <QSurfaceFormat>
|
|
#include <vtkGenericOpenGLRenderWindow.h>
|
|
#include "QVTKInteractorAdapter.h"
|
|
//max version:vtk 8.2.0
|
|
//#include <QVTKWidget.h>
|
|
|
|
//min version: vtk 8.2.0
|
|
#include <QVTKOpenGLNativeWidget.h>
|
|
|
|
//ITK headers
|
|
//#include <vnl/vnl_vector.hxx>
|
|
//#include <vnl/algo/vnl_svd.hxx>
|
|
//#include <vnl/algo/vnl_qr.hxx>
|
|
|
|
|
|
|
|
|
|
//newly added0
|
|
#include <vtkOBJReader.h>
|
|
#include <vtkMetaImageReader.h>
|
|
|
|
static const unsigned int InputDimension = 3;
|
|
static const unsigned int OutputDimension = 2;
|
|
|
|
typedef signed short PixelType;
|
|
|
|
typedef std::vector< std::string > FilenamesContainer;
|
|
typedef FilenamesContainer FileNamesContainerType;
|
|
|
|
|
|
|