Hugin trunk 0.1
Loading...
Searching...
No Matches
Namespaces | Enumerations | Functions
Mask.cpp File Reference
#include <iostream>
#include <stdio.h>
#include "Mask.h"
#include <vector>
#include <panotools/PanoToolsInterface.h>
#include <panodata/PTScriptParsing.h>
Include dependency graph for Mask.cpp:

Go to the source code of this file.

Namespaces

namespace  HuginBase
 mainly consists of wrapper around the pano tools library, to assist in ressource management and to provide a nicer interface.
 

Enumerations

enum  HuginBase::clipSide { HuginBase::clipLeft =0 , HuginBase::clipRight , HuginBase::clipTop , HuginBase::clipBottom }
 

Functions

bool HuginBase::clip_isSide (const hugin_utils::FDiff2D p, const vigra::Rect2D r, const clipSide side)
 
hugin_utils::FDiff2D HuginBase::clip_getIntersection (const hugin_utils::FDiff2D p, const hugin_utils::FDiff2D q, const vigra::Rect2D r, const clipSide side)
 
VectorPolygon HuginBase::clip_onPlane (const VectorPolygon &polygon, const vigra::Rect2D r, const clipSide side)
 
bool HuginBase::clip_insideCircle (const hugin_utils::FDiff2D p, const hugin_utils::FDiff2D center, const double radius)
 check if point is inside circle
 
std::vector< hugin_utils::FDiff2DHuginBase::clip_getIntersectionCircle (const hugin_utils::FDiff2D p, const hugin_utils::FDiff2D s, const hugin_utils::FDiff2D center, const double radius)
 returns intersection of line and circle
 
double HuginBase::angle_between (const hugin_utils::FDiff2D a, const hugin_utils::FDiff2D b)
 calculates angle between vector a and b in radians
 
void HuginBase::generateArc (VectorPolygon &poly, const hugin_utils::FDiff2D s, const hugin_utils::FDiff2D center, const double radius, const bool clockwise)
 adds an arc with given radius at the end of the polygon, the point is not added to the arc
 
void HuginBase::LoadMaskFromStream (std::istream &stream, vigra::Size2D &imageSize, MaskPolygonVector &newMasks, size_t imgNr)
 load the mask from stream
 
void HuginBase::SaveMaskToStream (std::ostream &stream, vigra::Size2D imageSize, MaskPolygon &maskToWrite, size_t imgNr)
 save the mask into stream