Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions | Variables
threshold.h File Reference
#include <vector>
#include <vigra/stdimage.hxx>
#include <vigra/transformimage.hxx>
#include "deghosting.h"
Include dependency graph for threshold.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::vector
< deghosting::BImagePtr
threshold (const std::vector< deghosting::FImagePtr > &inputImages, const double threshold, const uint16_t flags)
 Threshold function used for creating alpha masks for images. More...
 

Variables

const uint16_t ONE_UNMASKED = 0
 Advanced threshold Copyright (C) 2009 Lukáš Jirkovský l.jir.nosp@m.kovs.nosp@m.ky@gm.nosp@m.ail..nosp@m.com More...
 
const uint16_t THRESHOLD_DONTCARE = 1
 

Function Documentation

std::vector<deghosting::BImagePtr> threshold ( const std::vector< deghosting::FImagePtr > &  inputImages,
const double  threshold,
const uint16_t  flags 
)

Threshold function used for creating alpha masks for images.

Parameters
constvector<FImagePtr> vector of images
constint threshold all pixels above this thresshold are set to 255, others to 0
constuint16_t flags flags for setting the behavior possible values are: THRESHOLD_DONTCARE – applies only simple threshold ONE_UNMASKED – if pixel should be black in all images after applying threshold leave it in one image (where the pixel value is highest) white, default

Definition at line 41 of file threshold.h.

References vigra_ext::destImage(), vigra_ext::srcImageRange(), THRESHOLD_DONTCARE, and vigra_ext::transformImage().

Referenced by vigra_ext::correlateImage(), vigra_ext::correlateImageFast(), PanoOperation::CelesteOperation::GetInternalCommand(), main(), CPEditorPanel::OnCelesteButton(), CPListFrame::OnSelectButton(), PanoDetector::RansacMatchesInPairCam(), and CPListCtrl::SelectDistanceThreshold().

Variable Documentation

const uint16_t ONE_UNMASKED = 0

Advanced threshold Copyright (C) 2009 Lukáš Jirkovský l.jir.nosp@m.kovs.nosp@m.ky@gm.nosp@m.ail..nosp@m.com

This program 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 program 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 General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Definition at line 28 of file threshold.h.

const uint16_t THRESHOLD_DONTCARE = 1

Definition at line 29 of file threshold.h.

Referenced by parseOptions_advanced(), and threshold().