Loading...
Searching...
No Matches
itkMevisDicomTiffImageIO.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef itkMevisDicomTiffImageIO_h
#define itkMevisDicomTiffImageIO_h
#ifdef _MSC_VER
# pragma warning(disable : 4786)
#endif
#include "itkImageIOBase.h"
#include "itk_tiff.h"
#include "gdcmTag.h"
#include "gdcmAttribute.h"
#include <fstream>
#include <string>
namespace itk
{
class TIFFReaderInternal;
class ITK_EXPORT MevisDicomTiffImageIO : public ImageIOBase
{
public:
using Self = MevisDicomTiffImageIO;
using Superclass = ImageIOBase;
using Pointer = SmartPointer<Self>;
itkNewMacro(Self);
itkTypeMacro(MevisDicomTiffImageIO, Superclass);
itkGetConstMacro(RescaleSlope, double);
itkGetConstMacro(RescaleIntercept, double);
itkGetConstMacro(GantryTilt, double);
virtual bool
CanReadFile(const char *);
virtual void
ReadImageInformation();
virtual void
Read(void * buffer);
virtual bool
CanWriteFile(const char *);
virtual void
WriteImageInformation();
virtual void
Write(const void * buffer);
virtual bool
CanStreamRead()
{
return false;
}
virtual bool
CanStreamWrite()
{
return false;
}
protected:
MevisDicomTiffImageIO();
~MevisDicomTiffImageIO();
void
PrintSelf(std::ostream & os, Indent indent) const;
private:
MevisDicomTiffImageIO(const Self &);
void
operator=(const Self &);
bool
FindElement(const gdcm::DataSet ds, const gdcm::Tag tag, gdcm::DataElement & de, const bool breadthfirstsearch);
// the following may include the pathname
std::string m_DcmFileName{};
std::string m_TiffFileName{};
TIFF * m_TIFFImage{};
unsigned int m_TIFFDimension{};
bool m_IsOpen{};
unsigned short m_Compression{};
unsigned int m_BitsPerSample{};
unsigned int m_Width{};
unsigned int m_Length{};
unsigned int m_Depth{};
bool m_IsTiled{};
unsigned int m_TileWidth{};
unsigned int m_TileLength{};
unsigned int m_TileDepth{};
unsigned short m_NumberOfTiles{};
double m_RescaleSlope{};
double m_RescaleIntercept{};
double m_GantryTilt{};
double m_EstimatedMinimum{};
double m_EstimatedMaximum{};
};
} // end namespace itk
#endif // itkMevisDicomTiffImageIO_h
ImageIOBase
itk::MevisDicomTiffImageIO::CanStreamRead
virtual bool CanStreamRead()
Definition itkMevisDicomTiffImageIO.h:141
itk::MevisDicomTiffImageIO::m_IsTiled
bool m_IsTiled
Definition itkMevisDicomTiffImageIO.h:180
itk::MevisDicomTiffImageIO::m_RescaleSlope
double m_RescaleSlope
Definition itkMevisDicomTiffImageIO.h:186
itk::MevisDicomTiffImageIO::m_TiffFileName
std::string m_TiffFileName
Definition itkMevisDicomTiffImageIO.h:170
itk::MevisDicomTiffImageIO::m_TileWidth
unsigned int m_TileWidth
Definition itkMevisDicomTiffImageIO.h:181
itk::MevisDicomTiffImageIO::m_Width
unsigned int m_Width
Definition itkMevisDicomTiffImageIO.h:177
itk::MevisDicomTiffImageIO::m_NumberOfTiles
unsigned short m_NumberOfTiles
Definition itkMevisDicomTiffImageIO.h:184
itk::MevisDicomTiffImageIO::ReadImageInformation
virtual void ReadImageInformation()
itk::MevisDicomTiffImageIO::Write
virtual void Write(const void *buffer)
itk::MevisDicomTiffImageIO::CanWriteFile
virtual bool CanWriteFile(const char *)
itk::MevisDicomTiffImageIO::Pointer
SmartPointer< Self > Pointer
Definition itkMevisDicomTiffImageIO.h:114
itk::MevisDicomTiffImageIO::operator=
void operator=(const Self &)
itk::MevisDicomTiffImageIO::m_TileLength
unsigned int m_TileLength
Definition itkMevisDicomTiffImageIO.h:182
itk::MevisDicomTiffImageIO::Read
virtual void Read(void *buffer)
itk::MevisDicomTiffImageIO::m_TIFFDimension
unsigned int m_TIFFDimension
Definition itkMevisDicomTiffImageIO.h:173
itk::MevisDicomTiffImageIO::Self
MevisDicomTiffImageIO Self
Definition itkMevisDicomTiffImageIO.h:112
itk::MevisDicomTiffImageIO::m_EstimatedMaximum
double m_EstimatedMaximum
Definition itkMevisDicomTiffImageIO.h:190
itk::MevisDicomTiffImageIO::m_TIFFImage
TIFF * m_TIFFImage
Definition itkMevisDicomTiffImageIO.h:172
itk::MevisDicomTiffImageIO::m_Length
unsigned int m_Length
Definition itkMevisDicomTiffImageIO.h:178
itk::MevisDicomTiffImageIO::m_GantryTilt
double m_GantryTilt
Definition itkMevisDicomTiffImageIO.h:188
itk::MevisDicomTiffImageIO::m_IsOpen
bool m_IsOpen
Definition itkMevisDicomTiffImageIO.h:174
itk::MevisDicomTiffImageIO::m_RescaleIntercept
double m_RescaleIntercept
Definition itkMevisDicomTiffImageIO.h:187
itk::MevisDicomTiffImageIO::m_Compression
unsigned short m_Compression
Definition itkMevisDicomTiffImageIO.h:175
itk::MevisDicomTiffImageIO::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const
itk::MevisDicomTiffImageIO::m_DcmFileName
std::string m_DcmFileName
Definition itkMevisDicomTiffImageIO.h:169
itk::MevisDicomTiffImageIO::WriteImageInformation
virtual void WriteImageInformation()
itk::MevisDicomTiffImageIO::m_EstimatedMinimum
double m_EstimatedMinimum
Definition itkMevisDicomTiffImageIO.h:189
itk::MevisDicomTiffImageIO::m_TileDepth
unsigned int m_TileDepth
Definition itkMevisDicomTiffImageIO.h:183
itk::MevisDicomTiffImageIO::CanStreamWrite
virtual bool CanStreamWrite()
Definition itkMevisDicomTiffImageIO.h:148
itk::MevisDicomTiffImageIO::CanReadFile
virtual bool CanReadFile(const char *)
itk::MevisDicomTiffImageIO::~MevisDicomTiffImageIO
~MevisDicomTiffImageIO()
itk::MevisDicomTiffImageIO::FindElement
bool FindElement(const gdcm::DataSet ds, const gdcm::Tag tag, gdcm::DataElement &de, const bool breadthfirstsearch)
itk::MevisDicomTiffImageIO::MevisDicomTiffImageIO
MevisDicomTiffImageIO()
itk::MevisDicomTiffImageIO::m_Depth
unsigned int m_Depth
Definition itkMevisDicomTiffImageIO.h:179
itk::MevisDicomTiffImageIO::Superclass
ImageIOBase Superclass
Definition itkMevisDicomTiffImageIO.h:113
itk::MevisDicomTiffImageIO::MevisDicomTiffImageIO
MevisDicomTiffImageIO(const Self &)
itk::MevisDicomTiffImageIO::m_BitsPerSample
unsigned int m_BitsPerSample
Definition itkMevisDicomTiffImageIO.h:176
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |