impexalpha.hxx File Reference

Routines to save images with alpha masks. More...

#include <iostream>
#include <vigra/imageiterator.hxx>
#include <vigra/transformimage.hxx>
#include <vigra/initimage.hxx>
#include <vigra/numerictraits.hxx>
#include <vigra/impex.hxx>

Include dependency graph for impexalpha.hxx:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Namespaces

namespace  vigra

Classes

struct  vigra::MaskConv< vigra::UInt8 >
struct  vigra::MaskConv< vigra::UInt16 >
struct  vigra::MaskConv< vigra::Int16 >
struct  vigra::MaskConv< vigra::UInt32 >
struct  vigra::MaskConv< vigra::Int32 >
struct  vigra::MaskConv< float >
struct  vigra::MaskConv< double >
class  vigra::MultiImageMaskAccessor2< Iter1, Acc1, Iter2, Acc2 >
class  vigra::MultiImageVectorMaskAccessor4< Iter1, Acc1, Iter2, Acc2 >

Functions

template<class SrcIterator, class SrcAccessor, class AlphaIterator, class AlphaAccessor>
void exportImageAlpha (vigra::triple< SrcIterator, SrcIterator, SrcAccessor > image, std::pair< AlphaIterator, AlphaAccessor > alpha, vigra::ImageExportInfo const &info, vigra::VigraTrueType)
template<class SrcIterator, class SrcAccessor, class AlphaIterator, class AlphaAccessor>
void exportImageAlpha (vigra::triple< SrcIterator, SrcIterator, SrcAccessor > image, std::pair< AlphaIterator, AlphaAccessor > alpha, vigra::ImageExportInfo const &info, vigra::VigraFalseType)
template<class SrcIterator, class SrcAccessor, class AlphaIterator, class AlphaAccessor>
void exportImageAlpha (vigra::triple< SrcIterator, SrcIterator, SrcAccessor > image, std::pair< AlphaIterator, AlphaAccessor > alpha, vigra::ImageExportInfo const &info)
 export an image with a differently typed alpha channel.
template<class DestIterator, class DestAccessor, class AlphaIterator, class AlphaAccessor>
void importImageAlpha (vigra::ImageImportInfo const &info, std::pair< DestIterator, DestAccessor > image, std::pair< AlphaIterator, AlphaAccessor > alpha, vigra::VigraFalseType)
template<class DestIterator, class DestAccessor, class AlphaIterator, class AlphaAccessor>
void importImageAlpha (vigra::ImageImportInfo const &info, std::pair< DestIterator, DestAccessor > image, std::pair< AlphaIterator, AlphaAccessor > alpha, vigra::VigraTrueType)
template<class DestIterator, class DestAccessor, class AlphaIterator, class AlphaAccessor>
void importImageAlpha (vigra::ImageImportInfo const &info, vigra::pair< DestIterator, DestAccessor > image, std::pair< AlphaIterator, AlphaAccessor > alpha)
 import an image with a differently typed alpha channel.


Detailed Description

Routines to save images with alpha masks.

These routines handle the conversion of byte alpha channels into the final output types.

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
Id
impexalpha.hxx 1951 2007-04-15 20:54:49Z dangelo

This is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License along with this software; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Definition in file impexalpha.hxx.


Function Documentation

template<class SrcIterator, class SrcAccessor, class AlphaIterator, class AlphaAccessor>
void exportImageAlpha vigra::triple< SrcIterator, SrcIterator, SrcAccessor >  image,
std::pair< AlphaIterator, AlphaAccessor >  alpha,
vigra::ImageExportInfo const &  info
 

export an image with a differently typed alpha channel.

This function handles the merging of the images and the scales the alpha channel to the correct values.

can write to all output formats that support 4 channel images. (currently only png and tiff).

Definition at line 439 of file impexalpha.hxx.

Referenced by main().

template<class SrcIterator, class SrcAccessor, class AlphaIterator, class AlphaAccessor>
void exportImageAlpha vigra::triple< SrcIterator, SrcIterator, SrcAccessor >  image,
std::pair< AlphaIterator, AlphaAccessor >  alpha,
vigra::ImageExportInfo const &  info,
vigra::VigraFalseType 
 

Definition at line 417 of file impexalpha.hxx.

template<class SrcIterator, class SrcAccessor, class AlphaIterator, class AlphaAccessor>
void exportImageAlpha vigra::triple< SrcIterator, SrcIterator, SrcAccessor >  image,
std::pair< AlphaIterator, AlphaAccessor >  alpha,
vigra::ImageExportInfo const &  info,
vigra::VigraTrueType 
 

Definition at line 400 of file impexalpha.hxx.

Referenced by HuginBase::Nona::MultiImageRemapper< ImageType, AlphaImageType >::saveRemapped(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), and HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch().

template<class DestIterator, class DestAccessor, class AlphaIterator, class AlphaAccessor>
void importImageAlpha vigra::ImageImportInfo const &  info,
vigra::pair< DestIterator, DestAccessor >  image,
std::pair< AlphaIterator, AlphaAccessor >  alpha
 

import an image with a differently typed alpha channel.

This function loads an image, and splits it into a color image and a separate alpha channel, the alpha channel should be a 8 bit image.

If the image doesn't contain any alpha channel, a completely white one is created.

can write to all output formats that support 4 channel images. (currently only png and tiff).

Definition at line 497 of file impexalpha.hxx.

Referenced by PanoDetector::AnalyzeImage(), deghosting::Khan< PixelType >::importRGBImage(), mergeWeightedAverage(), and weightedAverageOfImageFiles().

template<class DestIterator, class DestAccessor, class AlphaIterator, class AlphaAccessor>
void importImageAlpha vigra::ImageImportInfo const &  info,
std::pair< DestIterator, DestAccessor >  image,
std::pair< AlphaIterator, AlphaAccessor >  alpha,
vigra::VigraTrueType 
 

Definition at line 471 of file impexalpha.hxx.

template<class DestIterator, class DestAccessor, class AlphaIterator, class AlphaAccessor>
void importImageAlpha vigra::ImageImportInfo const &  info,
std::pair< DestIterator, DestAccessor >  image,
std::pair< AlphaIterator, AlphaAccessor >  alpha,
vigra::VigraFalseType 
 

Definition at line 454 of file impexalpha.hxx.

Referenced by HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped(), HuginBase::ImageCache::importAndConvertAlphaImage(), loadAndConvertImage(), LoadGrayImageAndConvert(), LoadGrayImageAndFindLines(), LoadImageAndConvert(), LoadImageAndFindLines(), HuginBase::ImageCache::loadImageSafely(), loadImagesPyr(), PT::loadImagesPyr(), main2(), and processImg().


Generated on Sun Apr 20 01:25:45 2014 for Hugintrunk by  doxygen 1.3.9.1