//=====
void RescaleSlopeIntercept::Process()
{
+printf("RescaleSlopeIntercept::Process Start\n");
// THE MAIN PROCESSING METHOD BODY
// Here we simply set the input 'In' value to the output 'Out'
mchange->SetExtentTranslation( -ext[0], -ext[2], -ext[4] );
mchange->SetOutputSpacing (spc);
+ filter1->Update(); //important
+ filter2->Update(); //important
mchange->Update(); //important
bbSetOutputOut( mchange->GetOutput() );
+printf("RescaleSlopeIntercept::Process A\n");
} else {
+printf("RescaleSlopeIntercept::Process B\n");
bbSetOutputOut( NULL );
} // if bbGetInputIn
+printf("RescaleSlopeIntercept::Process End\n");
+
}
mDefaultImage->SetScalarComponentFromFloat(i,dim[1]-i-1,1,0,255);
}
+ mDefaultImage->Modified();
+
backImageData = mDefaultImage;
imageViewer->SetInput( backImageData );
mUpdateCamera = true;
bbtkDebugMessage("Output",3,"Viewer2D : slice = "<<z<<std::endl);
imageViewer->SetSliceOrientation (orientation);
imageViewer->SetSlice( z );
-
}
}