Superpixel Benchmark
Superpixel benchmark, tools and algorithms.
|
Represents basic intrinsic parameters used to project pixels into a point cloud. More...
#include <depth_tools.h>
Public Member Functions | |
float | projectZ (unsigned short depth, float factor=1000.f) const |
Get the z coordinate of the projected point given the depth as depth/factor. More... | |
template<typename T > | |
float | projectX (T x, unsigned short depth, float factor=1000.f) const |
Given the depth by depth/factor, project the x coordinate into 3D room. More... | |
template<typename T > | |
float | projectY (T y, unsigned short depth, float factor=1000.f) const |
Given the depth by depth/factor, project the y coordinate into 3D room. More... | |
int | backprojectX (float x, float depth, float factor=1000.f) const |
Given the depth by depth/factor, back project the x coordinate to image plain. More... | |
int | backprojectY (float y, float depth, float factor=1000.f) const |
Given the depth by depth/factor, back project the y coordinate to image plain. More... | |
Public Attributes | |
float | cropping_x |
If the image was cropped in x dimension by a specific number of pixels. More... | |
float | cropping_y |
If the images was cropped in y dimension by a specific number of pixels. More... | |
float | principal_x |
Principal point x coordinate. More... | |
float | principal_y |
Principal point y coordinate. More... | |
float | focal_x |
Focal length in x. More... | |
float | focal_y |
Focal length in y. More... | |
Represents basic intrinsic parameters used to project pixels into a point cloud.
int DepthTools::Camera::backprojectX | ( | float | x, |
float | depth, | ||
float | factor = 1000.f |
||
) | const |
Given the depth by depth/factor, back project the x coordinate to image plain.
[in] | x | x coordinate |
[in] | depth | depth coordinate |
[in] | factor | factor to multiply depth by |
int DepthTools::Camera::backprojectY | ( | float | y, |
float | depth, | ||
float | factor = 1000.f |
||
) | const |
Given the depth by depth/factor, back project the y coordinate to image plain.
[in] | y | y coordinate |
[in] | depth | depth coordinate |
[in] | factor | factor to multiply depth with |
template float DepthTools::Camera::projectX< float > | ( | T | x, |
unsigned short | depth, | ||
float | factor = 1000.f |
||
) | const |
Given the depth by depth/factor, project the x coordinate into 3D room.
[in] | x | x coordinate |
[in] | depth | depth as unsigned short |
[in] | factor | factor to divide depth by |
template float DepthTools::Camera::projectY< float > | ( | T | y, |
unsigned short | depth, | ||
float | factor = 1000.f |
||
) | const |
Given the depth by depth/factor, project the y coordinate into 3D room.
[in] | y | y coordinate |
[in] | depth | depth as unsigned short |
[in] | factor | factor to divide depth by |
float DepthTools::Camera::projectZ | ( | unsigned short | depth, |
float | factor = 1000.f |
||
) | const |
Get the z coordinate of the projected point given the depth as depth/factor.
[in] | depth | depth as unsigned short |
[in] | factor | factor to divide depth by |
Copyright (c) 2016, David Stutz Contact: david, davidstutz.de All rights reserved. .stu tz@rw th-a achen .de
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
float DepthTools::Camera::cropping_x |
If the image was cropped in x dimension by a specific number of pixels.
float DepthTools::Camera::cropping_y |
If the images was cropped in y dimension by a specific number of pixels.
float DepthTools::Camera::focal_x |
Focal length in x.
float DepthTools::Camera::focal_y |
Focal length in y.
float DepthTools::Camera::principal_x |
Principal point x coordinate.
float DepthTools::Camera::principal_y |
Principal point y coordinate.