VigraImpex


Namespaces

namespace  vigra::detail
namespace  vigra::detail

Functions

 vigra::doxygen_overloaded_function (template<...> void importImageAlpha) template< class ImageIterator
 Write the image and its alpha channel to a file.
ImageAccessor class AlphaIterator
class AlphaAccessor inline
void 
vigra::importImageAlpha (const ImageImportInfo &import_info, ImageIterator image_iterator, ImageAccessor image_accessor, AlphaIterator alpha_iterator, AlphaAccessor alpha_accessor)
template<class ImageIterator, class ImageAccessor, class AlphaIterator, class AlphaAccessor>
void vigra::importImageAlpha (ImageImportInfo const &import_info, pair< ImageIterator, ImageAccessor > image, pair< AlphaIterator, AlphaAccessor > alpha)
ImageAccessor class AlphaIterator
class AlphaAccessor inline
void 
vigra::exportImageAlpha (ImageIterator image_upper_left, ImageIterator image_lower_right, ImageAccessor image_accessor, AlphaIterator alpha_upper_left, AlphaAccessor alpha_accessor, const ImageExportInfo &export_info)
template<class ImageIterator, class ImageAccessor, class AlphaIterator, class AlphaAccessor>
void vigra::exportImageAlpha (triple< ImageIterator, ImageIterator, ImageAccessor > image, pair< AlphaIterator, AlphaAccessor > alpha, ImageExportInfo const &export_info)

Function Documentation

vigra::doxygen_overloaded_function ( template<...> void  exportImageAlpha  ) 

Write the image and its alpha channel to a file.

See importImage() for more information.

Declarations

pass 2D array views:

    namespace vigra {
    template <class T1, class S1,
    class T2, class S2>
    void
    importImageAlpha(ImageImportInfo const & import_info,
    MultiArrayView<2, T1, S1> image,
    MultiArrayView<2, T2, S2> alpha);
    }

{importImageAlpha} pass ImageIterators and DataAccessors :

    namespace vigra {
    template <class ImageIterator, class ImageAccessor,
    class AlphaIterator, class AlphaAccessor>
    void
    importImageAlpha(const ImageImportInfo& importInfo,
    ImageIterator imageIterator, ImageAccessor imageAccessor,
    AlphaIterator alphaIterator, AlphaAccessor alphaAccessor)
    }
Use argument objects in conjunction with ArgumentObjectFactories :
    namespace vigra {
    template <class ImageIterator, class ImageAccessor,
    class AlphaIterator, class AlphaAccessor>
    void
    importImageAlpha(const ImageImportInfo& importInfo,
    const pair<ImageIterator, ImageAccessor>& image,
    const pair<AlphaIterator, AlphaAccessor>& alpha)
    }

Usage:

#include <vigra/impexalpha.hxx>
Namespace: vigra

    typedef UInt8 value_t;
    ImageImportInfo info("zorro.tif");

    if (info.isGrayscale())
    {
    MultiArray<2, value_t> alpha(info.shape());
    MultiArray<2, value_t> image(info.shape());

    importImageAlpha(info, image, alpha);
    ...
    }
    else
    {
    MultiArray<2, value_t>            alpha(info.shape());
    MultiArray<2, RGBValue<value_t> > image(info.shape());

    importImageAlpha(info, image, alpha);
    ...
    }

{importImageAlpha}

    typedef UInt8 value_t;
    ImageImportInfo info("zorro.tif");

    if (info.isGrayscale())
    {
    BasicImage<value_t> alpha(info.size());
    BasicImage<value_t> image(info.size());

    importImageAlpha(info,
    image.upperLeft(), image.accessor(),
    alpha.upperLeft(), alpha.accessor());
    ...
    }
    else
    {
    BasicImage<value_t> alpha(info.size());
    BasicImage<vigra::RGBValue<value_t> > image(info.size());

    importImageAlpha(info,
    image.upperLeft(), image.accessor(),
    alpha.upperLeft(), alpha.accessor());
    ...
    }

Preconditions

template<class ImageIterator, class ImageAccessor, class AlphaIterator, class AlphaAccessor>
void vigra::exportImageAlpha ( triple< ImageIterator, ImageIterator, ImageAccessor >  image,
pair< AlphaIterator, AlphaAccessor >  alpha,
ImageExportInfo const &  export_info 
) [inline]

Definition at line 1136 of file impexalpha.hxx.

References vigra::exportImageAlpha().

class ImageAccessor class AlphaIterator class AlphaAccessor inline void vigra::exportImageAlpha ( ImageIterator  image_upper_left,
ImageIterator  image_lower_right,
ImageAccessor  image_accessor,
AlphaIterator  alpha_upper_left,
AlphaAccessor  alpha_accessor,
const ImageExportInfo &  export_info 
)

Definition at line 1106 of file impexalpha.hxx.

References vigra::detail::exportImageAlpha(), and celeste::info().

Referenced by correctRGB(), vigra::exportImageAlpha(), main(), SaveImage(), HuginBase::Nona::detail::saveRemapped(), StackImagesAndMask(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), and HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch().

template<class ImageIterator, class ImageAccessor, class AlphaIterator, class AlphaAccessor>
void vigra::importImageAlpha ( ImageImportInfo const &  import_info,
pair< ImageIterator, ImageAccessor >  image,
pair< AlphaIterator, AlphaAccessor >  alpha 
) [inline]

Definition at line 559 of file impexalpha.hxx.

References vigra::importImageAlpha().

class ImageAccessor class AlphaIterator class AlphaAccessor inline void vigra::importImageAlpha ( const ImageImportInfo &  import_info,
ImageIterator  image_iterator,
ImageAccessor  image_accessor,
AlphaIterator  alpha_iterator,
AlphaAccessor  alpha_accessor 
)

Definition at line 542 of file impexalpha.hxx.

References vigra::detail::importImageAlpha().

Referenced by PanoDetector::AnalyzeImage(), HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped(), HuginBase::ImageCache::importAndConvertAlphaImage(), vigra::importImageAlpha(), deghosting::Khan< PixelType >::importRGBImage(), loadAndConvertImage(), LoadAndMergeImages(), LoadGrayImageAndConvert(), LoadGrayImageAndFindLines(), LoadImageAndConvert(), LoadImageAndFindLines(), HuginBase::ImageCache::loadImageSafely(), loadImagesPyr(), PT::loadImagesPyr(), main2(), processImg(), ResaveImage(), StackImagesAndMask(), and weightedAverageOfImageFiles().


Generated on 23 Apr 2018 for Hugintrunk by  doxygen 1.4.7