template<class InputPixelType, unsigned int VImageDimension>
void vvImageReader::UpdateWithDimAndInputPixelType()
{
-
- // DD(mType);
-
if (mType == MERGEDWITHTIME) // In this case we can load the images
// one at the time to avoid excessive
// memory use
{
mImage=vvImage::New();
+
for (std::vector<std::string>::const_iterator i=mInputFilenames.begin(); i!=mInputFilenames.end(); i++) {
typedef itk::Image< InputPixelType, VImageDimension-1 > InputImageType;
typedef itk::ImageFileReader<InputImageType> ReaderType;
- BSD See included LICENSE.txt file
- CeCILL-B http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
-======================================================================-====*/
+ ======================================================================-====*/
#include "vvLandmarks.h"
#include <ios>
mPoints[int(t)]->InsertNextPoint(x,y,z);
/*std::stringstream numberVal;
- numberVal << (mLandmarks.size()-1);
- vvLandmarksGlyph *number = vvLandmarksGlyph::New();
- number->SetText(numberVal.str().c_str());
- number->BackingOff();
- mText.push_back(number);*/
+ numberVal << (mLandmarks.size()-1);
+ vvLandmarksGlyph *number = vvLandmarksGlyph::New();
+ number->SetText(numberVal.str().c_str());
+ number->BackingOff();
+ mText.push_back(number);*/
mIds->InsertNextTuple1(0.55);
//mIds->InsertTuple1(mLandmarks.size(),mLandmarks.size());
SetTime(int(t));
void vvLandmarks::RemoveLastLandmark()
{
mPoints[mLandmarks.back().coordinates[3]]->SetNumberOfPoints(
- mPoints[mLandmarks.back().coordinates[3]]->GetNumberOfPoints()-1);
+ mPoints[mLandmarks.back().coordinates[3]]->GetNumberOfPoints()-1);
mPolyData->Modified();
//mText.pop_back();
mLandmarks.pop_back();
} else
mFormatVersion=0;
}
- DD(mFormatVersion);
if (stringline.size() > 1) {
vvLandmark point;
int previousSpace = 0;
mLandmarks.push_back(point);
mIds->InsertNextTuple1(0.55);
mPoints[int(point.coordinates[3])]->InsertNextPoint(
- point.coordinates[0],point.coordinates[1],point.coordinates[2]);
+ point.coordinates[0],point.coordinates[1],point.coordinates[2]);
}
}
SetTime(0);
void vvMaximumIntensityProjection::Compute(vvSlicerManager * slicer_manager)
{
+ mCurrentSlicerManager = slicer_manager;
mDimension = QInputDialog::getInteger(0, "MIP Axis","Choose the axis along which to perform the MIP",0,0,\
slicer_manager->GetImage()->GetNumberOfDimensions()-1,1);
#define TRY_TYPE(TYPE) \
filter->SetInput(input);
filter->Update();
mOutputImage=vvImageFromITK<Dim-1,PixelType>(filter->GetOutput());
+ // std::ostringstream osstream;
+ // osstream << "MIP_" << mCurrentSlicerManager->GetSlicer(0)->GetFileName() << ".mhd";
+ // AddImage(mOutputImage,osstream.str());
}
if (range)
this->Slice = static_cast<int>((range[0] + range[1]) * 0.5);
+ // Go to current cursor position
+ // double* cursorPos = GetCursorPosition();
+ // DDV(cursorPos, 3);
+ // SetCurrentPosition(cursorPos[0],cursorPos[1],cursorPos[2],cursorPos[3]);
+
this->UpdateOrientation();
this->UpdateDisplayExtent();