gdcmImageChangeTransferSyntax.h
Go to the documentation of this file.
/*=========================================================================
Program: GDCM (Grassroots DICOM). A DICOM library
Copyright (c) 2006-2011 Mathieu Malaterre
All rights reserved.
See Copyright.txt or http://gdcm.sourceforge.net/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
#ifndef GDCMIMAGECHANGETRANSFERSYNTAX_H
#define GDCMIMAGECHANGETRANSFERSYNTAX_H
#include "gdcmImageToImageFilter.h"
#include "gdcmTransferSyntax.h"
namespace gdcm
{
class DataElement;
class ImageCodec;
class GDCM_EXPORT ImageChangeTransferSyntax : public ImageToImageFilter
{
public:
ImageChangeTransferSyntax():TS(TransferSyntax::TS_END),Force(false),CompressIconImage(false),UserCodec(nullptr) {}
~ImageChangeTransferSyntax() = default;
void SetTransferSyntax(const TransferSyntax &ts) { TS = ts; }
const TransferSyntax &GetTransferSyntax() const { return TS; }
bool Change();
void SetCompressIconImage(bool b) { CompressIconImage = b; }
void SetForce( bool f ) { Force = f; }
void SetUserCodec(ImageCodec *ic) { UserCodec = ic; }
protected:
bool TryJPEGCodec(const DataElement &pixelde, Bitmap const &input, Bitmap &output);
bool TryJPEG2000Codec(const DataElement &pixelde, Bitmap const &input, Bitmap &output);
bool TryJPEGLSCodec(const DataElement &pixelde, Bitmap const &input, Bitmap &output);
bool TryRAWCodec(const DataElement &pixelde, Bitmap const &input, Bitmap &output);
bool TryRLECodec(const DataElement &pixelde, Bitmap const &input, Bitmap &output);
private:
TransferSyntax TS;
bool Force;
bool CompressIconImage;
ImageCodec *UserCodec;
};
} // end namespace gdcm
#endif //GDCMIMAGECHANGETRANSFERSYNTAX_H
gdcm::Bitmap
Bitmap class.
Definition gdcmBitmap.h:39
gdcm::DataElement
Class to represent a Data Element either Implicit or Explicit.
Definition gdcmDataElement.h:59
gdcm::ImageChangeTransferSyntax::TryJPEG2000Codec
bool TryJPEG2000Codec(const DataElement &pixelde, Bitmap const &input, Bitmap &output)
gdcm::ImageChangeTransferSyntax::SetUserCodec
void SetUserCodec(ImageCodec *ic)
Definition gdcmImageChangeTransferSyntax.h:68
gdcm::ImageChangeTransferSyntax::SetCompressIconImage
void SetCompressIconImage(bool b)
Definition gdcmImageChangeTransferSyntax.h:55
gdcm::ImageChangeTransferSyntax::TryJPEGLSCodec
bool TryJPEGLSCodec(const DataElement &pixelde, Bitmap const &input, Bitmap &output)
gdcm::ImageChangeTransferSyntax::GetTransferSyntax
const TransferSyntax & GetTransferSyntax() const
Get Transfer Syntax.
Definition gdcmImageChangeTransferSyntax.h:48
gdcm::ImageChangeTransferSyntax::~ImageChangeTransferSyntax
~ImageChangeTransferSyntax()=default
gdcm::ImageChangeTransferSyntax::SetTransferSyntax
void SetTransferSyntax(const TransferSyntax &ts)
Set target Transfer Syntax.
Definition gdcmImageChangeTransferSyntax.h:46
gdcm::ImageChangeTransferSyntax::TryJPEGCodec
bool TryJPEGCodec(const DataElement &pixelde, Bitmap const &input, Bitmap &output)
gdcm::ImageChangeTransferSyntax::TryRAWCodec
bool TryRAWCodec(const DataElement &pixelde, Bitmap const &input, Bitmap &output)
gdcm::ImageChangeTransferSyntax::ImageChangeTransferSyntax
ImageChangeTransferSyntax()
Definition gdcmImageChangeTransferSyntax.h:42
gdcm::ImageChangeTransferSyntax::Change
bool Change()
Change.
gdcm::ImageChangeTransferSyntax::TryRLECodec
bool TryRLECodec(const DataElement &pixelde, Bitmap const &input, Bitmap &output)
gdcm::ImageChangeTransferSyntax::SetForce
void SetForce(bool f)
Definition gdcmImageChangeTransferSyntax.h:61
gdcm::ImageCodec
ImageCodec.
Definition gdcmImageCodec.h:31
gdcm::ImageToImageFilter::ImageToImageFilter
ImageToImageFilter()
gdcm::TransferSyntax
Class to manipulate Transfer Syntax.
Definition gdcmTransferSyntax.h:40
gdcmImageToImageFilter.h
gdcmTransferSyntax.h
GDCM_EXPORT
#define GDCM_EXPORT
Definition gdcmWin32.h:34
gdcm
Definition gdcmASN1.h:21