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

vector< BImagePtrthreshold (const vector< FImagePtr > &inputImages, const double threshold, const uint16_t flags)
 Threshold function used for creating alpha masks for images.

Variables

const uint16_t ONE_UNMASKED = 0
const uint16_t THRESHOLD_DONTCARE = 1


Function Documentation

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

Threshold function used for creating alpha masks for images.

Parameters:
const vector<FImagePtr> vector of images
const int threshold all pixels above this thresshold are set to 255, others to 0
const uint16_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 45 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(), and CPListFrame::OnSelectButton().


Variable Documentation

const uint16_t ONE_UNMASKED = 0

Definition at line 32 of file threshold.h.

const uint16_t THRESHOLD_DONTCARE = 1

Definition at line 33 of file threshold.h.

Referenced by parseOptions_advanced(), and threshold().


Generated on 3 Aug 2015 for Hugintrunk by  doxygen 1.4.7