📄 gdcmpixelwriteconvert.h
字号:
/*=========================================================================
Program: gdcm
Module: $RCSfile: gdcmPixelWriteConvert.h,v $
Language: C++
Date: $Date: 2006-07-10 20:08:21 $
Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
http://www.creatis.insa-lyon.fr/Public/Gdcm/License.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 notices for more information.
=========================================================================*/
#ifndef GDCMPIXELWRITECONVERT_H
#define GDCMPIXELWRITECONVERT_H
#include "gdcmCommon.h"
#include "gdcmBase.h"
namespace gdcm
{
/**
* \brief Utility container for gathering the various forms the pixel data
* migth take during the user requiered processes.
* \warning None of the methods may be called by end user (they have no
* meaning outside the class FileHelper)
*/
class File;
class GDCM_EXPORT PixelWriteConvert : public Base
{
friend class FileHelper;
private:
PixelWriteConvert();
virtual ~PixelWriteConvert();
// Set/Get of images and their size
void SetReadData(uint8_t *data, size_t size);
/// \brief returns ReadData
uint8_t *GetReadData() { return ReadData; }
/// \brief returns ReadDataSize
size_t GetReadDataSize() { return ReadDataSize; }
/// \brief Set UserData
void SetUserData(uint8_t *data, size_t size);
/// \brief returns UserData
uint8_t *GetUserData() { return UserData; }
/// \brief returns UserDataSize
size_t GetUserDataSize() { return UserDataSize; }
// Get the used image and its size
uint8_t *GetData();
size_t GetDataSize();
void SetCompressJPEG2000UserData(uint8_t *data, size_t size, File *image);
void SetCompressJPEGUserData(uint8_t *data, size_t size, File *image);
// Variables
/// Pixel data represented as RGB after LUT color interpretation.
uint8_t *ReadData;
/// Size of RGB image.
size_t ReadDataSize;
/// User pixel data
uint8_t *UserData;
/// Size of User image.
size_t UserDataSize;
bool Compressed;
};
} // end namespace gdcm
//-----------------------------------------------------------------------------
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -