#include <CalculateOptimalROI.h>
Inheritance diagram for HuginBase::CalculateOptimalROI:

Public Member Functions | |
| CalculateOptimalROI (PanoramaData &panorama, bool intersect=false) | |
| CalculateOptimalROI (PanoramaData &panorama, std::vector< UIntSet > hdr_stacks) | |
| virtual | ~CalculateOptimalROI () |
| virtual bool | modifiesPanoramaData () const |
| returns true if the algorithm changes the PanoramaData. | |
| virtual bool | runAlgorithm () |
| implementation of the algorithm. | |
| bool | calcOptimalROI (PanoramaData &panorama) |
| virtual vigra::Rect2D | getResultOptimalROI () |
| return the ROI structure?, for now area | |
| virtual vigra::Size2D | getResultOptimalSize () |
| return the ROI structure?, for now area | |
| void | setStacks (std::vector< UIntSet > hdr_stacks) |
| sets the stack vector | |
Private Member Functions | |
| bool | imgPixel (int i, int j) |
| bool | stackPixel (int i, int j, UIntSet &stack) |
| void | makecheck (int left, int top, int right, int bottom) |
| int | autocrop () |
| void | nonreccheck (int left, int top, int right, int bottom, int acc, int searchStrategy) |
Private Attributes | |
| vigra::Rect2D | o_optimalROI |
| vigra::Size2D | o_optimalSize |
| bool | intersection |
| std::vector< UIntSet > | stacks |
| UIntSet | activeImages |
| std::map< unsigned int, PTools::Transform * > | transfMap |
| boost::dynamic_bitset | testedPixels |
| boost::dynamic_bitset | pixels |
| int | count |
| nonrec * | head |
| nonrec * | tail |
| nonrec | best |
| long | maxvalue |
|
||||||||||||
|
Definition at line 40 of file CalculateOptimalROI.h. |
|
||||||||||||
|
Definition at line 48 of file CalculateOptimalROI.h. |
|
|
Definition at line 57 of file CalculateOptimalROI.h. |
|
|
Definition at line 379 of file CalculateOptimalROI.cpp. References best, HuginBase::CalculateOptimalROI::nonrec::bottom, count, head, HuginBase::CalculateOptimalROI::nonrec::left, log2(), maxvalue, nonreccheck(), o_optimalSize, vigra_ext::pow(), HuginBase::CalculateOptimalROI::nonrec::right, tail, and HuginBase::CalculateOptimalROI::nonrec::top. Referenced by calcOptimalROI(). |
|
|
|
return the ROI structure?, for now area
Definition at line 78 of file CalculateOptimalROI.h. Referenced by autoCrop(), PT::Panorama::calcOptimalROI(), PT::Panorama::calcOptimalStackROI(), and main(). |
|
|
return the ROI structure?, for now area
Definition at line 87 of file CalculateOptimalROI.h. Referenced by PT::Panorama::calcOptimalROI(), and PT::Panorama::calcOptimalStackROI(). |
|
||||||||||||
|
Definition at line 125 of file CalculateOptimalROI.cpp. References activeImages, o_optimalSize, pixels, stackPixel(), stacks, and testedPixels. Referenced by nonreccheck(). |
|
||||||||||||||||||||
|
Definition at line 163 of file CalculateOptimalROI.cpp. References HuginBase::CalculateOptimalROI::nonrec::bottom, count, HuginBase::CalculateOptimalROI::nonrec::left, maxvalue, HuginBase::CalculateOptimalROI::nonrec::next, o_optimalSize, HuginBase::CalculateOptimalROI::nonrec::right, tail, and HuginBase::CalculateOptimalROI::nonrec::top. Referenced by nonreccheck(). |
|
|
returns true if the algorithm changes the PanoramaData.
Implements HuginBase::PanoramaAlgorithm. Definition at line 62 of file CalculateOptimalROI.h. |
|
||||||||||||||||||||||||||||
|
Definition at line 209 of file CalculateOptimalROI.cpp. References best, HuginBase::CalculateOptimalROI::nonrec::bottom, count, head, imgPixel(), HuginBase::CalculateOptimalROI::nonrec::left, makecheck(), maxvalue, HuginBase::CalculateOptimalROI::nonrec::next, HuginBase::CalculateOptimalROI::nonrec::right, tail, and HuginBase::CalculateOptimalROI::nonrec::top. Referenced by autocrop(). |
|
|
implementation of the algorithm. You should override with your algorithm's implementiation. Implements HuginBase::PanoramaAlgorithm. Definition at line 66 of file CalculateOptimalROI.h. |
|
|
sets the stack vector
Definition at line 432 of file CalculateOptimalROI.cpp. References intersection, and stacks. Referenced by PT::Panorama::calcOptimalStackROI(), and main(). |
|
||||||||||||||||
|
Definition at line 95 of file CalculateOptimalROI.cpp. References HuginBase::PanoramaData::getImage(), HuginBase::SrcPanoImage::isInside(), and transfMap. Referenced by imgPixel(). |
|
|
Definition at line 105 of file CalculateOptimalROI.h. Referenced by calcOptimalROI(), and imgPixel(). |
|
|
Definition at line 128 of file CalculateOptimalROI.h. Referenced by autocrop(), calcOptimalROI(), and nonreccheck(). |
|
|
Definition at line 125 of file CalculateOptimalROI.h. Referenced by autocrop(), makecheck(), and nonreccheck(). |
|
|
Definition at line 126 of file CalculateOptimalROI.h. Referenced by autocrop(), and nonreccheck(). |
|
|
Definition at line 101 of file CalculateOptimalROI.h. Referenced by setStacks(). |
|
|
Definition at line 130 of file CalculateOptimalROI.h. Referenced by autocrop(), makecheck(), and nonreccheck(). |
|
|
Definition at line 98 of file CalculateOptimalROI.h. Referenced by calcOptimalROI(). |
|
|
Definition at line 99 of file CalculateOptimalROI.h. Referenced by autocrop(), calcOptimalROI(), imgPixel(), and makecheck(). |
|
|
Definition at line 109 of file CalculateOptimalROI.h. Referenced by calcOptimalROI(), and imgPixel(). |
|
|
Definition at line 103 of file CalculateOptimalROI.h. Referenced by imgPixel(), and setStacks(). |
|
|
Definition at line 127 of file CalculateOptimalROI.h. Referenced by autocrop(), makecheck(), and nonreccheck(). |
|
|
Definition at line 108 of file CalculateOptimalROI.h. Referenced by calcOptimalROI(), and imgPixel(). |
|
|
Definition at line 106 of file CalculateOptimalROI.h. Referenced by calcOptimalROI(), and stackPixel(). |
1.3.9.1