Skip to content

Commit

Permalink
ENH: allow const reference passing of itk::InputTextStream
Browse files Browse the repository at this point in the history
  • Loading branch information
jadh4v committed Aug 21, 2024
1 parent 5196e8a commit e57c930
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions include/itkInputTextStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ class WebAssemblyInterface_EXPORT InputTextStream
return *m_IStream;
}

const std::istream & Get() const {
return *m_IStream;
}

std::istream * GetPointer() {
return m_IStream;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/dicom/dcmtk/write-overlapping-segmentation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ using AdaptorType = itk::VectorImageToImageAdaptor<PixelType, Dimension>;

int runPipeline(
const itk::wasm::InputImage<VectorImageType>& inputImage,
itk::wasm::InputTextStream& metaInfoStream,
const itk::wasm::InputTextStream& metaInfoStream,
const std::vector<std::string> & dicomImageFiles,
const std::string & outputDicomFile,
const bool skipEmptySlices,
Expand Down
2 changes: 1 addition & 1 deletion packages/dicom/dcmtk/write-segmentation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ using ScalarImageType = itk::Image<PixelType, Dimension>;

int runPipeline(
const itk::wasm::InputImage<ScalarImageType>& inputImage,
itk::wasm::InputTextStream& metaInfoStream,
const itk::wasm::InputTextStream& metaInfoStream,
const std::vector<std::string> & dicomImageFiles,
const std::string & outputDicomFile,
const bool skipEmptySlices,
Expand Down

0 comments on commit e57c930

Please sign in to comment.