ROIImage.h File Reference

#include <hugin_utils/utils.h>
#include <vigra/imageinfo.hxx>
#include "lut.h"

Include dependency graph for ROIImage.h:

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_ext

Classes

class  vigra_ext::ROIImage< Image, Mask >
 brief description.. More...

Functions

template<class ImgIter, class ImgAcc>
vigra::triple< ImgIter, ImgIter,
ImgAcc > 
applyRect (vigra::Rect2D &r, vigra::triple< ImgIter, ImgIter, ImgAcc > img)
 apply a roi to an image area
template<class ImgIter, class ImgAcc>
vigra::pair< ImgIter, ImgAcc > applyRect (vigra::Rect2D &r, vigra::pair< ImgIter, ImgAcc > img)
 apply a roi to an image
template<typename Image, typename Mask>
vigra::triple< typename ROIImage<
Image, Mask >::image_const_traverser,
typename ROIImage< Image,
Mask >::image_const_traverser,
typename ROIImage< Image,
Mask >::ImageConstAccessor > 
srcImageRange (const ROIImage< Image, Mask > &img)
 helper function for ROIImages
template<typename Image, typename Mask>
vigra::pair< typename ROIImage<
Image, Mask >::image_const_traverser,
typename ROIImage< Image,
Mask >::ImageConstAccessor > 
srcImage (const ROIImage< Image, Mask > &img)
template<class Image, class Alpha>
vigra::triple< typename ROIImage<
Image, Alpha >::image_traverser,
typename ROIImage< Image,
Alpha >::image_traverser,
typename ROIImage< Image,
Alpha >::ImageAccessor > 
destImageRange (ROIImage< Image, Alpha > &img)
template<class Image, class Alpha>
vigra::pair< typename ROIImage<
Image, Alpha >::image_traverser,
typename ROIImage< Image,
Alpha >::ImageAccessor > 
destImage (ROIImage< Image, Alpha > &img)
template<class Image, class Alpha>
vigra::triple< typename ROIImage<
Image, Alpha >::mask_const_traverser,
typename ROIImage< Image,
Alpha >::mask_const_traverser,
typename ROIImage< Image,
Alpha >::MaskConstAccessor > 
srcMaskRange (const ROIImage< Image, Alpha > &img)
template<class Image, class Alpha>
vigra::pair< typename ROIImage<
Image, Alpha >::mask_const_traverser,
typename ROIImage< Image,
Alpha >::MaskConstAccessor > 
srcMask (const ROIImage< Image, Alpha > &img)
template<class Image, class Alpha>
vigra::triple< typename ROIImage<
Image, Alpha >::mask_traverser,
typename ROIImage< Image,
Alpha >::mask_traverser,
typename ROIImage< Image,
Alpha >::MaskAccessor > 
destMaskRange (ROIImage< Image, Alpha > &img)
template<class Image, class Alpha>
vigra::pair< typename ROIImage<
Image, Alpha >::mask_traverser,
typename ROIImage< Image,
Alpha >::MaskAccessor > 
destMask (ROIImage< Image, Alpha > &img)
template<class ImgIter, class ImgAcc, class MaskIter, class MaskAcc, class Functor>
void inspectImagesIf (std::vector< ImgIter > imgs, std::vector< MaskIter > masks, std::vector< vigra::Rect2D > rois, Functor &f)
 function to inspect a variable number of images.
template<class ROIIMG, class DestIter, class DestAccessor, class MaskIter, class MaskAccessor, class FUNCTOR>
void reduceROIImages (std::vector< ROIIMG * > images, vigra::triple< DestIter, DestIter, DestAccessor > dest, vigra::pair< MaskIter, MaskAccessor > destMask, FUNCTOR &reduce)
 algorithm to reduce a set of ROI images


Detailed Description

Author:
Pablo d'Angelo <pablo.dangelo@web.de>
$Id$

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 ROIImage.h.


Function Documentation

template<class ImgIter, class ImgAcc>
vigra::pair<ImgIter, ImgAcc> applyRect vigra::Rect2D &  r,
vigra::pair< ImgIter, ImgAcc >  img
 

apply a roi to an image

adjusts the iterators, so that they iterate over the region specifed by r

Definition at line 66 of file ROIImage.h.

Referenced by vigra_ext::blend(), HuginBase::Nona::estimateBlendingOrder(), HuginBase::Nona::DifferenceBlender::operator()(), and HuginBase::Nona::StackingBlender::operator()().

template<class ImgIter, class ImgAcc>
vigra::triple<ImgIter, ImgIter, ImgAcc> applyRect vigra::Rect2D &  r,
vigra::triple< ImgIter, ImgIter, ImgAcc >  img
 

apply a roi to an image area

adjusts the iterators, so that they iterate over the region specifed by r

Ignores the lowerRight in img. If r is bigger than the new iterators will point outside of the other one.

Definition at line 46 of file ROIImage.h.

References DEBUG_ASSERT.

Referenced by vigra_ext::blend(), HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), and HuginBase::Nona::DifferenceBlender::operator()().

template<class Image, class Alpha>
vigra::pair<typename ROIImage<Image,Alpha>::image_traverser, typename ROIImage<Image,Alpha>::ImageAccessor> destImage ROIImage< Image, Alpha > &  img  )  [inline]
 

Definition at line 324 of file ROIImage.h.

References vigra_ext::ROIImage< Image, Mask >::accessor(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().

Referenced by PanoDetector::AnalyzeImage(), vigra_ext::blendOverlap(), PreviewColorPickerTool::CalcCorrectionForImage(), HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), convert_file(), convertGrayToUInt8(), deghosting::Khan< PixelType >::convertImage(), HuginBase::convertTo8Bit(), celeste::convertToUInt16(), convertToUInt8(), correctImage(), correctRGB(), createCtrlPoints(), createCtrlPointsOld(), deghosting::Khan< PixelType >::createWeightMasks(), HuginLines::detectEdges(), TestCode::drawRansacMatches(), HuginBase::Nona::estimateBlendingOrder(), vigra_ext::findInterestPointsOnGrid(), PanoOperation::CelesteOperation::GetInternalCommand(), HuginBase::Nona::FileRemapper< ImageType, AlphaType >::getRemapped(), HuginBase::SmallRemappedImageCache::getRemapped(), deghosting::Khan< PixelType >::importRGBImage(), loadAndConvertImage(), LoadGrayImageAndConvert(), LoadGrayImageAndFindLines(), LoadImageAndConvert(), LoadImageAndFindLines(), HuginBase::ImageCache::loadImageSafely(), main(), main2(), mergeWeightedAverage(), CPEditorPanel::OnCelesteButton(), vigra_ext::PointFineTune(), PointFineTune2(), vigra_ext::PointFineTuneRotSearch(), celeste::prepareCelesteImage(), deghosting::Khan< PixelType >::preprocessImage(), processImg(), PT::wxAddCtrlPointGridCmd::processPanorama(), vigra_ext::reduceToNextLevelOld(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), HuginLines::resize_image(), HuginBase::PointSampler::sampleAndExtractPoints(), HuginBase::Nona::MultiImageRemapper< ImageType, AlphaImageType >::saveRemapped(), LensCalImageCtrl::SetEdgeImage(), threshold(), PreviewPanel::updatePreview(), and weightedAverageOfImageFiles().

template<class Image, class Alpha>
vigra::triple<typename ROIImage<Image,Alpha>::image_traverser, typename ROIImage<Image,Alpha>::image_traverser, typename ROIImage<Image,Alpha>::ImageAccessor> destImageRange ROIImage< Image, Alpha > &  img  )  [inline]
 

Definition at line 312 of file ROIImage.h.

References vigra_ext::ROIImage< Image, Mask >::accessor(), vigra_ext::ROIImage< Image, Mask >::lowerRight(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().

Referenced by PanoDetector::AnalyzeImage(), correctImage(), deghosting::Khan< PixelType >::createWeightMasks(), TextureManager::TextureInfo::DefineLevels(), celeste::getCelesteMask(), main(), vigra_ext::PointFineTuneRotSearch(), celeste::prepareCelesteImage(), vigra_ext::reduceNTimes(), vigra_ext::reduceToNextLevel(), vigra_ext::reduceToNextLevelOld(), HuginBase::Nona::RemappedPanoImage< RemapImage, AlphaImage >::remapImage(), HuginLines::resize_image(), and PreviewPanel::updatePreview().

template<class Image, class Alpha>
vigra::pair<typename ROIImage<Image,Alpha>::mask_traverser, typename ROIImage<Image,Alpha>::MaskAccessor> destMask ROIImage< Image, Alpha > &  img  )  [inline]
 

Definition at line 370 of file ROIImage.h.

References vigra_ext::ROIImage< Image, Mask >::maskAccessor(), and vigra_ext::ROIImage< Image, Mask >::maskUpperLeft().

Referenced by vigra_ext::reduceROIImages().

template<class Image, class Alpha>
vigra::triple<typename ROIImage<Image,Alpha>::mask_traverser, typename ROIImage<Image,Alpha>::mask_traverser, typename ROIImage<Image,Alpha>::MaskAccessor> destMaskRange ROIImage< Image, Alpha > &  img  )  [inline]
 

Definition at line 358 of file ROIImage.h.

References vigra_ext::ROIImage< Image, Mask >::maskAccessor(), vigra_ext::ROIImage< Image, Mask >::maskLowerRight(), and vigra_ext::ROIImage< Image, Mask >::maskUpperLeft().

template<class ImgIter, class ImgAcc, class MaskIter, class MaskAcc, class Functor>
void inspectImagesIf std::vector< ImgIter >  imgs,
std::vector< MaskIter >  masks,
std::vector< vigra::Rect2D >  rois,
Functor &  f
 

function to inspect a variable number of images.

They do not need to overlap, and will be only evaluated inside their ROI

Definition at line 399 of file ROIImage.h.

template<class ROIIMG, class DestIter, class DestAccessor, class MaskIter, class MaskAccessor, class FUNCTOR>
void reduceROIImages std::vector< ROIIMG * >  images,
vigra::triple< DestIter, DestIter, DestAccessor >  dest,
vigra::pair< MaskIter, MaskAccessor >  destMask,
FUNCTOR &  reduce
 

algorithm to reduce a set of ROI images

Definition at line 465 of file ROIImage.h.

References vigra_ext::destMask(), vigra_ext::ROIImage< Image, Mask >::getMask(), celeste::max(), and enblend::reduce().

template<typename Image, typename Mask>
vigra::pair<typename ROIImage<Image, Mask>::image_const_traverser, typename ROIImage<Image, Mask>::ImageConstAccessor> srcImage const ROIImage< Image, Mask > &  img  )  [inline]
 

Definition at line 300 of file ROIImage.h.

References vigra_ext::ROIImage< Image, Mask >::accessor(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().

Referenced by PanoDetector::AnalyzeImage(), createCtrlPointsOld(), HuginBase::Nona::estimateBlendingOrder(), main(), ImageVariableDialog::OnShowDistortionGraph(), ImageVariableDialog::OnShowVignettingGraph(), vigra_ext::PointFineTune(), PointFineTune2(), vigra_ext::PointFineTuneRotSearch(), PT::wxAddCtrlPointGridCmd::processPanorama(), vigra_ext::reduceNTimes(), vigra_ext::reduceToNextLevel(), HuginBase::Nona::MultiImageRemapper< ImageType, AlphaImageType >::saveRemapped(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), PreviewPanel::updatePreview(), and weightedAverageOfImageFiles().

template<typename Image, typename Mask>
vigra::triple<typename ROIImage<Image, Mask>::image_const_traverser, typename ROIImage<Image, Mask>::image_const_traverser, typename ROIImage<Image, Mask>::ImageConstAccessor> srcImageRange const ROIImage< Image, Mask > &  img  )  [inline]
 

helper function for ROIImages

Definition at line 287 of file ROIImage.h.

References vigra_ext::ROIImage< Image, Mask >::accessor(), vigra_ext::ROIImage< Image, Mask >::lowerRight(), and vigra_ext::ROIImage< Image, Mask >::upperLeft().

Referenced by PanoDetector::AnalyzeImage(), vigra_ext::blend(), vigra_ext::blendOverlap(), PreviewColorPickerTool::CalcCorrectionForImage(), convertGrayToUInt8(), deghosting::Khan< PixelType >::convertImage(), HuginBase::convertTo8Bit(), celeste::convertToUInt16(), convertToUInt8(), correctImage(), correctRGB(), createCtrlPoints(), createCtrlPointsOld(), deghosting::Khan< PixelType >::createWeightMasks(), TextureManager::TextureInfo::DefineLevels(), HuginLines::detectEdges(), TestCode::drawRansacMatches(), celeste::getCelesteMask(), PanoOperation::CelesteOperation::GetInternalCommand(), HuginBase::SmallRemappedImageCache::getRemapped(), deghosting::Khan< PixelType >::importRGBImage(), HuginBase::ImageCache::loadImageSafely(), main(), CPEditorPanel::OnCelesteButton(), vigra_ext::PointFineTuneRotSearch(), celeste::prepareCelesteImage(), deghosting::Khan< PixelType >::preprocessImage(), PT::wxAddCtrlPointGridCmd::processPanorama(), vigra_ext::reduceNTimes(), vigra_ext::reduceToNextLevel(), vigra_ext::reduceToNextLevelOld(), HuginLines::resize_image(), HuginBase::PointSampler::sampleAndExtractPoints(), HuginBase::Nona::MultiImageRemapper< ImageType, AlphaImageType >::saveRemapped(), LensCalImageCtrl::SetEdgeImage(), HuginBase::Nona::SimpleStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::ReduceStitcher< ImageType, AlphaType >::stitch(), HuginBase::Nona::WeightedStitcher< ImageType, AlphaType >::stitch(), threshold(), PreviewPanel::updatePreview(), and weightedAverageOfImageFiles().

template<class Image, class Alpha>
vigra::pair<typename ROIImage<Image,Alpha>::mask_const_traverser, typename ROIImage<Image,Alpha>::MaskConstAccessor> srcMask const ROIImage< Image, Alpha > &  img  )  [inline]
 

Definition at line 347 of file ROIImage.h.

References vigra_ext::ROIImage< Image, Mask >::maskAccessor(), and vigra_ext::ROIImage< Image, Mask >::maskUpperLeft().

Referenced by vigra_ext::blend(), HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), HuginBase::SmallRemappedImageCache::getRemapped(), HuginBase::Nona::DifferenceBlender::operator()(), and HuginBase::Nona::StackingBlender::operator()().

template<class Image, class Alpha>
vigra::triple<typename ROIImage<Image,Alpha>::mask_const_traverser, typename ROIImage<Image,Alpha>::mask_const_traverser, typename ROIImage<Image,Alpha>::MaskConstAccessor> srcMaskRange const ROIImage< Image, Alpha > &  img  )  [inline]
 

Definition at line 335 of file ROIImage.h.

References vigra_ext::ROIImage< Image, Mask >::maskAccessor(), vigra_ext::ROIImage< Image, Mask >::maskLowerRight(), and vigra_ext::ROIImage< Image, Mask >::maskUpperLeft().

Referenced by vigra_ext::blend(), HuginBase::CalculateFOV::calcFOV(), HuginBase::CenterHorizontally::centerHorizontically(), HuginBase::Nona::estimateBlendingOrder(), HuginBase::Nona::DifferenceBlender::operator()(), and HuginBase::Nona::StackingBlender::operator()().


Generated on Tue Sep 2 01:25:47 2014 for Hugintrunk by  doxygen 1.3.9.1