template <class T>
void BinaryThresholdImageFilterGeneric::Process()
{
-printf("EED BinaryThresholdImageFilterGeneric::Process Start\n");
bbtkDebugMessageInc("Core",9,
"bbitk::BinaryThresholdImageFilterGeneric::Process<"
<<bbtk::TypeName<T>()<<">()"<<std::endl);
this->bbSetOutputOut( f->bbGetOutputOut() );
bbtkDebugDecTab("Core",9);
-printf("EED BinaryThresholdImageFilterGeneric::Process End\n");
}
//===================================================
void FilesFromDirectory::Process()
{
-printf("EED FilesFromDirectory::Process Start\n");
-
Filenames.clear();
SimpleFilenames.clear();
DirName = bbGetInputIn();
CleanFilenames( bbGetInputIn() );
bbSetOutputOut(Filenames);
bbSetOutputOutSimple(SimpleFilenames);
-
-printf("EED FilesFromDirectory::Process End\n");
}
void FilesFromDirectory::bbUserSetDefaultValues()
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void ReadColumnsDouble::Process()
-{
- printf("EED ReadColumnsDouble::Process start \n");
-
- std::vector< std::vector<double> * > tlst;
-
+{
+printf("EED ReadColumnsDouble::Process UPS \n");
+ std::vector< std::vector<double> * > tlst;
int i;
for( i=0 ; i<bbGetInputDimension() ; i++)
{
tlst.push_back( new std::vector<double> );
}
-
int numberOfLines = 0;
char tmpValue[1000];
std::vector<double> *vecData;
i=13; if (i<=bbGetInputDimension()) { bbSetOutputlstData13( *(tlst[i-1]) ); }
i=14; if (i<=bbGetInputDimension()) { bbSetOutputlstData14( *(tlst[i-1]) ); }
i=15; if (i<=bbGetInputDimension()) { bbSetOutputlstData15( *(tlst[i-1]) ); }
-
-
- printf("EED ReadColumnsDouble::Process end \n");
-
-
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void ReadColumnsInt::Process()
{
- printf("EED ReadColumnsDouble::Process start \n");
-
- std::vector< std::vector<int> * > tlst;
-
+ std::vector< std::vector<int> * > tlst;
int i;
for( i=0 ; i<bbGetInputDimension() ; i++)
{
tlst.push_back( new std::vector<int> );
}
-
int numberOfLines = 0;
char tmpValue[1000];
std::vector<int> *vecData;
} else { // else ff1
printf("ReadColumnsDouble::Process ...Error... reading file FileName <%s>\n", bbGetInputFileName().c_str() );
} //ff1
-
i=1; if (i<=bbGetInputDimension()) { bbSetOutputlstData1( *(tlst[i-1]) ); }
i=2; if (i<=bbGetInputDimension()) { bbSetOutputlstData2( *(tlst[i-1]) ); }
i=3; if (i<=bbGetInputDimension()) { bbSetOutputlstData3( *(tlst[i-1]) ); }
i=6; if (i<=bbGetInputDimension()) { bbSetOutputlstData6( *(tlst[i-1]) ); }
i=7; if (i<=bbGetInputDimension()) { bbSetOutputlstData7( *(tlst[i-1]) ); }
i=8; if (i<=bbGetInputDimension()) { bbSetOutputlstData8( *(tlst[i-1]) ); }
- i=9; if (i<=bbGetInputDimension()) { bbSetOutputlstData9( *(tlst[i-1]) ); }
-
- printf("EED ReadColumnsDouble::Process end \n");
-
+ i=9; if (i<=bbGetInputDimension()) { bbSetOutputlstData9( *(tlst[i-1]) ); }
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
//=====
void WriteColumnsString::Process()
{
-
- std::cout << "MLER WriteColumnsString::Process Start " << std::endl;
-
-
std::ofstream write_fi;
- write_fi.open(bbGetInputFileName().c_str());
-
+ write_fi.open(bbGetInputFileName().c_str());
std::vector<std::string> headers = bbGetInputHeaders(); //Headers Input
bool onHeaders = bbGetInputOnHeaders();
-
-
std::vector<std::vector<std::string> > values;
-
values.push_back(bbGetInputlstData1());
values.push_back(bbGetInputlstData2());
values.push_back(bbGetInputlstData3());
values.push_back(bbGetInputlstData7());
values.push_back(bbGetInputlstData8());
values.push_back(bbGetInputlstData9());
-
std::vector<std::vector<std::string> >::iterator it;
-
- std::cout << "values size"<<values.size()<< std::endl;
for(it = values.begin() ; it != values.end() ; )
{
if((*it).empty())
it++;
}
}
- std::cout << "values size"<<values.size()<< std::endl;
-
if(write_fi.is_open())
{
if(onHeaders == true) // If onHeaders is true, the file is write with Headers.
}//for headersSize
}
-
unsigned int colSize = values[0].size();
-
for(unsigned int j=0;j<colSize;j++)
{
for(unsigned int i=0;i<values.size();i++)
}else{
write_fi << values[i][j] << "\t";
}
-
}
-
}
-
-
}// if write_fi.is_open()
else
{
std::cout<<"No es posible abrir"<<std::endl;
}//else
-
write_fi.close();
-
- bbSetOutputOutFileName(bbGetInputFileName().c_str());
-
- std::cout << "MLER WriteColumnsString::End Process " << std::endl;
-
+ bbSetOutputOutFileName(bbGetInputFileName().c_str());
}
//=====
// Before editing this file, make sure it's a file of your own (i.e.: it wasn't generated from xml description; if so : your modifications will be lost)
<process>
<PRE>
- printf("EED ImageGaussianSmooth::Process start a\n");
bbGetVtkObject()->SetStandardDeviation(bbGetInputStdDevX(),
bbGetInputStdDevY(),
bbGetInputStdDevZ());
bbGetVtkObject()->Modified();
bbGetVtkObject()->Update();
- printf("EED ImageGaussianSmooth::Process end \n");
</PRE>
</process>
}
}
+
// --------------------------------------------------------------
void Transform::Process()
{
result->Concatenate( bbGetInputIn()->GetMatrix() );
}
-
if ((bbGetInputTranslate().size()>=3) && (bbGetInputSpacing().size()>=3))
{
double tx = bbGetInputTranslate()[0] * bbGetInputSpacing()[0];
double ty = bbGetInputTranslate()[1] * bbGetInputSpacing()[1];
double tz = bbGetInputTranslate()[2] * bbGetInputSpacing()[2];
-printf("Transform::Process() %f %f %f\n",tx, ty,tz);
result->Translate(tx,ty,tz);
}
{
result->RotateWXYZ(bbGetInputRotateWXYZ()[0],bbGetInputRotateWXYZ()[1], bbGetInputRotateWXYZ()[2], bbGetInputRotateWXYZ()[3]);
}
-
-
bbSetOutputOut(result);
}