bbSetOutputOut(0);
return;
}
- // Get info from the image file
+ // Get info from THE image file (only *one* as input)
int i;
std::vector<double> v_iop;
float iop[6];
BBTK_BEGIN_DESCRIBE_BLACK_BOX(GetInfoGdcmReader,bbtk::AtomicBlackBox);
BBTK_NAME("GetInfoGdcmReader");
BBTK_AUTHOR("jpr, eduardo");
-BBTK_DESCRIPTION("Get Dicom info and read (as a vtkImageData)");
+BBTK_DESCRIPTION("Get Dicom info (for a single File) and read (as a vtkImageData)");
BBTK_CATEGORY("");
BBTK_INPUT(GetInfoGdcmReader,In, "Dicom image file name", std::string,"");
BBTK_BLACK_BOX_IMPLEMENTATION(GetXCoherentInfoGdcmReader,bbtk::AtomicBlackBox);
void GetXCoherentInfoGdcmReader::Process()
{
- // Read the first image file
+ // Read the *first* image file (a SET of file names is given as input)
f = GDCM_NAME_SPACE::File::New();
f->SetFileName( bbGetInputIn()[0] );
bool res = f->Load();
bbSetOutputIPP(v_ipp );
-// Add all the files to the SerieHelper
+// Add *all the files* to the SerieHelper
sh = GDCM_NAME_SPACE::SerieHelper::New();
std::vector<std::string> gii = bbGetInputIn();
for(std::vector<std::string>::iterator it = gii.begin();
BBTK_BEGIN_DESCRIBE_BLACK_BOX(GetXCoherentInfoGdcmReader,bbtk::AtomicBlackBox);
BBTK_NAME("GetXCoherentInfoGdcmReader");
BBTK_AUTHOR("jpr, eduardo");
-BBTK_DESCRIPTION("Get Dicom info from a File Set and read (as a vtkImageData)");
+BBTK_DESCRIPTION("Get Dicom info from a File Set (a list of Dicom image file names) and read (as a vtkImageData)");
BBTK_CATEGORY("");
-BBTK_INPUT(GetXCoherentInfoGdcmReader,In, "Dicom image file name",std::vector<std::string>,"");
+BBTK_INPUT(GetXCoherentInfoGdcmReader,In, "List of Dicom image file names", std::vector<std::string>,"");
BBTK_INPUT(GetXCoherentInfoGdcmReader,IPPSort,"Sort on Image Position Patient",bool,"");
BBTK_OUTPUT(GetXCoherentInfoGdcmReader,Out, "Output image", vtkImageData *,"");