Skip to content

Commit 1eb7705

Browse files
committed
fix(gdcmDiscriminateVolume): Remove prints
1 parent 0bec9a6 commit 1eb7705

File tree

3 files changed

+2
-8
lines changed

3 files changed

+2
-8
lines changed

packages/dicom/gdcm/gdcmDiscriminateVolume.h

-6
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@ namespace gdcm
8484

8585
void ProcessAIOP(Scanner const &, Directory::FilenamesType const &subset, const char *iopval)
8686
{
87-
std::cout << "IOP: " << iopval << std::endl;
8887
IPPSorter ipp;
8988
ipp.SetComputeZSpacing(true);
9089
ipp.SetZSpacingTolerance(1e-3); // ??
@@ -103,7 +102,6 @@ namespace gdcm
103102
UnsortedFiles.push_back(subset);
104103
return;
105104
}
106-
ipp.Print(std::cout);
107105
SortedFiles.push_back(ipp.GetFilenames());
108106
}
109107

@@ -120,7 +118,6 @@ namespace gdcm
120118
Directory::FilenamesType::const_iterator file = files.begin();
121119
file != files.end(); ++file)
122120
{
123-
// std::cout << *file << std::endl;
124121
const char *value = s.GetValue(file->c_str(), gdcm::t4);
125122
assert(value);
126123
iopset.insert(value);
@@ -132,7 +129,6 @@ namespace gdcm
132129
return;
133130
}
134131

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

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

199194
void ProcessAStudy(Scanner const &s, const char *studyuid)
200195
{
201-
std::cout << "Study: " << studyuid << std::endl;
202196
gdcm::Scanner::ValuesType vt2 = s.GetValues(t2);
203197
for (
204198
gdcm::Scanner::ValuesType::const_iterator it = vt2.begin(); it != vt2.end(); ++it)

packages/dicom/gdcm/image-sets-normalization.cxx

+2-2
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ int main(int argc, char *argv[])
181181
instance.AddMember("DICOM", instanceTagsJson, allocator);
182182
rapidjson::Value fileNameValue;
183183
fileNameValue.SetString(fileName.c_str(), fileName.size(), allocator);
184-
instance.AddMember("fileName", fileNameValue, allocator);
184+
instance.AddMember("FileName", fileNameValue, allocator);
185185

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

0 commit comments

Comments
 (0)