vrcore  0.45
visuReal Messkern
 All Classes Files Functions Variables
vr::MeasuringAttachment Class Reference

Diese Klasse repräsentiert den Visierbügel. More...

#include <MeasuringAttachment.h>

Collaboration diagram for vr::MeasuringAttachment:

Public Member Functions

SpringStrutgetSpringStrut (LateralSide side)
 
const cv::Vec3d & getUpperSideMark (LateralSide side)
 
void reset ()
 

Static Public Member Functions

static MeasuringAttachmentinstance ()
 
static void computeConfiguration (const cv::Mat &image, const CoordinateTransformation &t)
 ermittelt die Bügelkonfiguration (Erwachsenenbrille | Kinderbrille) More...
 
static
measuringattachment::Configuration 
getConfiguration ()
 
static void setConfiguration (measuringattachment::Configuration configuration)
 
static void getTransformation (const cv::Matx33d &cameraMatrix, cv::Point2f &right, cv::Point2f &left, cv::Point2f &peak, cv::Vec3d &rvec, cv::Vec3d &tvec, cv::InputArray distortionCoeffs=noDistortionCoeffs)
 
static void getTransformation (CoordinateTransformation &t, cv::Point2f &right, cv::Point2f &left, cv::Point2f &peak)
 ermittelt die Koordinationtransformationen Bild <-> Kamera <-> Bügel More...
 
static cv::Vec3d getFramePlaneIntersection (const Line &line)
 berechnet den Schnittpunkt der Gerade line mit der Fassungsebene. More...
 
static cv::Point2f getGuessedPupil (const LateralSide side, const CoordinateTransformation &ct)
 

Static Public Attributes

static const cv::Vec3d null
 
static const cv::Vec3d down
 
static const cv::Vec3d mainMarkR
 Hauptmarke rechts, "OR".
 
static const cv::Vec3d mainMarkL
 Hauptmarke links, Marke "OL".
 
static const cv::Vec3d peakMark
 Hauptmarke Mitte (auf Ausleger), Marke "OM".
 
static const double mainMarkDistance = cv::norm(mainMarkL - mainMarkR)
 
static const double mainMarkPeakMarkDistance = cv::norm(peakMark - mainMarkR)
 
static const Plane framePlane
 
static const double inclination
 Neigung der Federstreben-Achsen gegen die Senkrechte bei Projektion auf die x-z-Ebene.
 
static const cv::Point3f guessedPupils [LATERAL_SIDE]
 

Friends

class SpringStrut
 

Detailed Description

Diese Klasse repräsentiert den Visierbügel.

Koordinaten und Abstände der unbeweglichen Marken als Kostanten, die Konfiguration (für Kinder- oder Erwachsenenbrille) sowie die Positionen der beweglichen Teile (Federstreben) können abgefragt werden.

Author
Robert Rossmair
Date
15.09.2012

Member Function Documentation

void vr::MeasuringAttachment::computeConfiguration ( const cv::Mat &  image,
const CoordinateTransformation t 
)
static

ermittelt die Bügelkonfiguration (Erwachsenenbrille | Kinderbrille)

Parameters
imageGraustufenbild mit Bügel
tKoordinationtransformationen Bild <-> Kamera <-> Bügel

Here is the caller graph for this function:

cv::Vec3d vr::MeasuringAttachment::getFramePlaneIntersection ( const Line line)
static

berechnet den Schnittpunkt der Gerade line mit der Fassungsebene.

berechnet den Schnittpunkt der Gerade line mit der Fassungsebene; die Fassungsebene ist eine Parallelebene circa 2,7 mm hinter der Ebene der Federstreben. Der Abstand ist durch die Anlageflächen des Visierbügels gegeben.

Parameters
lineGerade
Returns
Schnittpunkt
void vr::MeasuringAttachment::getTransformation ( CoordinateTransformation t,
cv::Point2f &  right,
cv::Point2f &  left,
cv::Point2f &  peak 
)
static

ermittelt die Koordinationtransformationen Bild <-> Kamera <-> Bügel

Parameters
tKoordinationtransformationen Bild <-> Kamera <-> Bügel
rightrechte Bügelhauptmarke
leftlinke Bügelhauptmarke
peakmittlere Bügelmarke

Here is the call graph for this function:

Member Data Documentation

const cv::Point3f vr::MeasuringAttachment::guessedPupils
static
Initial value:
= {
{-30.0f, -31.0f, 30.0f},
{-30.0f, +31.0f, 30.0f}}

The documentation for this class was generated from the following files: