MDSTk Libraries  1.1.0
Medical Data Segmentation Toolkit
Namespaces | Defines | Functions | Variables
mdsPNGBaseFunctions.cpp File Reference

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2007 by Michal Spanel
. More...

#include <MDSTk/ImageIO/mdsPNGBaseFunctions.h>
#include <MDSTk/Base/mdsVersion.h>
#include <MDSTk/Base/mdsMemory.h>
#include <zlib.h>
#include <png.h>
#include <setjmp.h>

Namespaces

namespace  mds
 

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2005 by Michal Spanel


namespace  mds::img

Defines

#define png_jmpbuf(png_ptr)   ((png_ptr)->jmpbuf)

Functions

bool mds::img::loadColorPNG (CRGBImage &Image, mds::mod::CChannel &Channel)
 Reads full color PNG image from a given input channel.
bool mds::img::loadGrayPNG (CImage16 &Image, mds::mod::CChannel &Channel)
 Reads grayscale PNG image from a given input channel.
bool mds::img::saveColorPNG (const CRGBImage &Image, mds::mod::CChannel &Channel)
 Writes full color PNG image to a given output channel.
bool mds::img::saveGrayPNG (const CImage16 &Image, mds::mod::CChannel &Channel)
 Writes grayscale PNG image to a given output channel.
void mds::img::userFlushData (png_structp)
void mds::img::userReadData (png_structp pPNGStruct, png_bytep pData, png_size_t Length)
void mds::img::userWriteData (png_structp pPNGStruct, png_bytep pData, png_size_t Length)

Variables

const unsigned int mds::img::B_WEIGHT = 7209
const double mds::img::FILE_GAMMA = 0.45455
const unsigned int mds::img::G_WEIGHT = 38666
const unsigned int mds::img::R_WEIGHT = 19660
 Pixel conversion (RGB -> 0..65535).
const double mds::img::SCREEN_GAMMA = 2.2
 Default gamma correction.

Detailed Description

Medical Data Segmentation Toolkit (MDSTk)
Copyright (c) 2003-2007 by Michal Spanel
.

Author: Michal Spanel, spanel@fit.vutbr.cz
Date: 2007/06/12

Id:
mdsPNGBaseFunctions.cpp 2103 2012-02-17 10:08:20Z spanel

Description:


Define Documentation

#define png_jmpbuf (   png_ptr)    ((png_ptr)->jmpbuf)