series_numbers.insert(series_number);
theorigin[series_number] = gdcm::ImageHelper::GetOriginValue(hreader.GetFile());
theorientation[series_number] = gdcm::ImageHelper::GetDirectionCosinesValue(hreader.GetFile());
- if (args_info.extract_series_flag) {
+ if (args_info.patientSystem_flag) {
double n1 = theorientation[series_number][1]*theorientation[series_number][5]-
theorientation[series_number][2]*theorientation[series_number][4];
double n2 = theorientation[series_number][3]*theorientation[series_number][2]-
}
vvImageWriter::Pointer writer = vvImageWriter::New();
writer->SetInput(image);
- if (args_info.extract_series_flag && !image->GetTransform().empty())
+ if (args_info.patientSystem_flag && !image->GetTransform().empty())
writer->SetSaveTransform(true);
writer->SetOutputFileName(outfile);
writer->Update();