From 7229d6643ec50932ae4cec818ff053cb60660483 Mon Sep 17 00:00:00 2001 From: Eduardo Davila Date: Mon, 9 Jul 2012 13:03:17 +0000 Subject: [PATCH] Clean comments --- packages/vtk/src/bbvtkFlip.cxx | 44 ++----------------- .../vtk/src/bbvtkRescaleSlopeIntercept.cxx | 11 ++++- 2 files changed, 12 insertions(+), 43 deletions(-) diff --git a/packages/vtk/src/bbvtkFlip.cxx b/packages/vtk/src/bbvtkFlip.cxx index 4f9244f..33d70a7 100644 --- a/packages/vtk/src/bbvtkFlip.cxx +++ b/packages/vtk/src/bbvtkFlip.cxx @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbvtkFlip.cxx,v $ Language: C++ - Date: $Date: 2012/04/11 16:27:00 $ - Version: $Revision: 1.2 $ + Date: $Date: 2012/07/09 13:03:17 $ + Version: $Revision: 1.3 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -104,31 +104,7 @@ vtkImageData * Flip::flip(vtkImageData *imageIn) int lineSize = inputdims[0]*scalarSize*nbScalComp; int planeSize = inputdims[1]*lineSize; char *pixelsIn = (char *)imageIn->GetScalarPointer(); - -/* - outputdims[0] = inputdims[1]; - outputdims[1] = inputdims[0]; - outputdims[2] = inputdims[2]; - std::cout << " inputdims[0] " << inputdims[0] <<" inputdims[1] " <SetDimensions( outputdims ); - vtkImageOut->SetExtent(0,outputdims[0]-1,0,outputdims[1]-1,0,outputdims[2]-1); - vtkImageOut->SetWholeExtent(0,outputdims[0]-1,0,outputdims[1]-1,0,outputdims[2]-1); - int nbScalComp = imageIn->GetNumberOfScalarComponents(); - vtkImageOut->SetNumberOfScalarComponents(nbScalComp); - vtkImageOut->SetSpacing( imageIn->GetSpacing() ); - vtkImageOut->SetScalarType(imageIn->GetScalarType() ); - vtkImageOut->AllocateScalars(); - vtkImageOut->Update(); - char *pixelsOut = (char *)vtkImageOut->GetScalarPointer(); - unsigned short *output =(unsigned short *)(vtkImageOut->GetScalarPointer()); - */ - + char *temp = (char *)malloc(lineSize); char *line1; char *line2; @@ -144,20 +120,6 @@ vtkImageData * Flip::flip(vtkImageData *imageIn) } } -// This was to transpose the image ... -/* - for(int k=0; kSetScalarComponentFromDouble(j,i,k,l,imageIn->GetScalarComponentAsDouble(i,j,k,l)); - } - } - - } - } - return vtkImageOut; -*/ free (temp); return imageIn; } diff --git a/packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx b/packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx index cb1a770..3f4494e 100644 --- a/packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx +++ b/packages/vtk/src/bbvtkRescaleSlopeIntercept.cxx @@ -30,6 +30,9 @@ void RescaleSlopeIntercept::Process() // bbSetOutputOut( bbGetInputIn() ); // std::cout << "Output value = " <SetExtentTranslation( -ext[0], -ext[2], -ext[4] ); mchange->SetOutputSpacing (spc); mchange->Update(); //important - bbSetOutputOut( mchange->GetOutput() ); - } // if + } else { + bbSetOutputOut( NULL ); + } // if bbGetInputIn + + printf("EED RescaleSlopeIntercept::Process end\n"); + } //===== -- 2.47.1