Program: bbtk
Module: $RCSfile: bbitkImageProperties.cxx,v $
Language: C++
- Date: $Date: 2011/02/27 18:30:48 $
- Version: $Revision: 1.13 $
+ Date: $Date: 2011/02/28 06:56:57 $
+ Version: $Revision: 1.14 $
=========================================================================*/
/* ---------------------------------------------------------------------
#include "bbitkImageProperties.h"
#include "bbitkPackage.h"
+#include "itkMinimumMaximumImageFilter.h"
namespace bbitk
{
// Min Max Value // EED
//itk::MinimumMaximumImageFilter< TInputImage >
-// itk::MinimumMaximumImageFilter minmaxfilter itk::MinimumMaximumImageFilter< im >
+ printf("EED ImageProperties::DoIt 1\n");
+ itk::MinimumMaximumImageFilter<itkImageType> *minmaxfilter = itk::MinimumMaximumImageFilter< itkImageType >::New();
+ printf("EED ImageProperties::DoIt 2\n");
std::vector<float> vminmax;
-// vminmax.push_back( minmaxfilter->GetMaximumOutput() );
-// vminmax.push_back( minmaxfilter->GetMinimumOutput() );
- vminmax.push_back( 17 );
- vminmax.push_back( 1972 );
+/*
+ minmaxfilter->SetInput(im);
+ printf("EED ImageProperties::DoIt 3\n");
+ minmaxfilter->Update();
+ printf("EED ImageProperties::DoIt 4\n");
+// vminmax.push_back( minmaxfilter->GetMinimumOutput()->Get() );
+// vminmax.push_back( minmaxfilter->GetMaximumOutput()->Get() );
+ vminmax.push_back( minmaxfilter->GetMinimum() );
+ printf("EED ImageProperties::DoIt 5\n");
+ vminmax.push_back( minmaxfilter->GetMaximum() );
+ printf("EED ImageProperties::DoIt 6\n");
+*/
+ vminmax.push_back( 22 );
+ vminmax.push_back( 33 );
bbSetOutputMinMax(vminmax);
+ printf("EED ImageProperties::DoIt 7\n");
bbtkDebugDecTab("Core",9);
}