Skip to content

Commit

Permalink
fix(gdcmDiscriminateVolume): Remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulHax committed Mar 22, 2024
1 parent 0bec9a6 commit 66c9a9f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
8 changes: 1 addition & 7 deletions packages/dicom/gdcm/gdcmDiscriminateVolume.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ namespace gdcm

void ProcessAIOP(Scanner const &, Directory::FilenamesType const &subset, const char *iopval)
{
std::cout << "IOP: " << iopval << std::endl;
IPPSorter ipp;
ipp.SetComputeZSpacing(true);
ipp.SetZSpacingTolerance(1e-3); // ??
Expand All @@ -103,7 +102,6 @@ namespace gdcm
UnsortedFiles.push_back(subset);
return;
}
ipp.Print(std::cout);
SortedFiles.push_back(ipp.GetFilenames());
}

Expand All @@ -120,7 +118,6 @@ namespace gdcm
Directory::FilenamesType::const_iterator file = files.begin();
file != files.end(); ++file)
{
// std::cout << *file << std::endl;
const char *value = s.GetValue(file->c_str(), gdcm::t4);
assert(value);
iopset.insert(value);
Expand All @@ -132,7 +129,6 @@ namespace gdcm
return;
}

std::cout << "Frame of Ref: " << frameuid << std::endl;
if (n == 1)
{
ProcessAIOP(s, files, iopset.begin()->c_str());
Expand Down Expand Up @@ -183,7 +179,6 @@ namespace gdcm

void ProcessASeries(Scanner const &s, const char *seriesuid)
{
std::cout << "Series: " << seriesuid << std::endl;
// let's find all files belonging to this series:
Directory::FilenamesType seriesfiles = GetAllFilenamesFromTagToValue(
s, s.GetFilenames(), t2, seriesuid);
Expand All @@ -198,8 +193,7 @@ namespace gdcm

void ProcessAStudy(Scanner const &s, const char *studyuid)
{
std::cout << "Study: " << studyuid << std::endl;
gdcm::Scanner::ValuesType vt2 = s.GetValues(t2);
dcm::Scanner::ValuesType vt2 = s.GetValues(t2);
for (
gdcm::Scanner::ValuesType::const_iterator it = vt2.begin(); it != vt2.end(); ++it)
{
Expand Down
4 changes: 2 additions & 2 deletions packages/dicom/gdcm/image-sets-normalization.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int main(int argc, char *argv[])
instance.AddMember("DICOM", instanceTagsJson, allocator);
rapidjson::Value fileNameValue;
fileNameValue.SetString(fileName.c_str(), fileName.size(), allocator);
instance.AddMember("fileName", fileNameValue, allocator);
instance.AddMember("FileName", fileNameValue, allocator);

// instance by UID under instances
itk::DICOMTagReader::TagMapType::iterator it = dicomTags.find("0008|0018");
Expand All @@ -200,7 +200,7 @@ int main(int argc, char *argv[])
rapidjson::Value series(rapidjson::kObjectType);
series.AddMember("DICOM", seriesTags, allocator);
series.AddMember("Instances", instances, allocator);
// series by ID under study
// series by ID object
itk::DICOMTagReader::TagMapType::iterator it = dicomTags.find("0020|000e");
if (it == dicomTags.end())
{
Expand Down

0 comments on commit 66c9a9f

Please sign in to comment.