Commit b43a6591 authored by kulvait's avatar kulvait

FIX: DenFrame2DReaderItk

Making some fields in DenFrame2DReader protected to be accessible to its child class DenFrame2DReaderItk
parent 109bb971
...@@ -50,13 +50,14 @@ namespace io { ...@@ -50,13 +50,14 @@ namespace io {
uint32_t dimz() const override; uint32_t dimz() const override;
std::string getFileName() const; std::string getFileName() const;
/**Returns file name of the underlying DEN file.**/ /**Returns file name of the underlying DEN file.**/
private: protected:
std::string denFile; std::string denFile;
uint64_t offset; uint64_t offset;
// protected: // Visible in inheritance structure // protected: // Visible in inheritance structure
uint32_t sizex, sizey, sizez; uint32_t sizex, sizey, sizez;
DenSupportedType dataType; DenSupportedType dataType;
int elementByteSize; int elementByteSize;
private:
mutable std::mutex* consistencyMutexes; mutable std::mutex* consistencyMutexes;
uint8_t** buffers; uint8_t** buffers;
T** buffer_copys; T** buffer_copys;
......
...@@ -38,10 +38,9 @@ namespace io { ...@@ -38,10 +38,9 @@ namespace io {
{ {
// LOGD << "Called readProjectionSliceToItkImage method, transpose???"; // LOGD << "Called readProjectionSliceToItkImage method, transpose???";
typename itk::RawImageIO<T, 2>::Pointer rawImageIO = itk::RawImageIO<T, 2>::New(); typename itk::RawImageIO<T, 2>::Pointer rawImageIO = itk::RawImageIO<T, 2>::New();
rawImageIO->SetFileName(this->denFile); //(1) ... this is probably unnecessery rawImageIO->SetFileName(this->getFileName()); //(1) ... this is probably unnecessery
rawImageIO->SetFileTypeToBinary(); rawImageIO->SetFileTypeToBinary();
uint32_t offset = 6; rawImageIO->SetHeaderSize(this->offset + i * this->elementByteSize * (this->sizex * this->sizey));
rawImageIO->SetHeaderSize(offset + i * this->elementByteSize * (this->sizex * this->sizey));
rawImageIO->SetFileDimensionality(2); rawImageIO->SetFileDimensionality(2);
rawImageIO->SetOrigin(0, 0.0); // origin in millimeters rawImageIO->SetOrigin(0, 0.0); // origin in millimeters
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment