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 {
uint32_t dimz() const override;
std::string getFileName() const;
/**Returns file name of the underlying DEN file.**/
private:
protected:
std::string denFile;
uint64_t offset;
// protected: // Visible in inheritance structure
uint32_t sizex, sizey, sizez;
DenSupportedType dataType;
int elementByteSize;
private:
mutable std::mutex* consistencyMutexes;
uint8_t** buffers;
T** buffer_copys;
......
......@@ -38,10 +38,9 @@ namespace io {
{
// LOGD << "Called readProjectionSliceToItkImage method, transpose???";
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();
uint32_t offset = 6;
rawImageIO->SetHeaderSize(offset + i * this->elementByteSize * (this->sizex * this->sizey));
rawImageIO->SetHeaderSize(this->offset + i * this->elementByteSize * (this->sizex * this->sizey));
rawImageIO->SetFileDimensionality(2);
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