View Source Evision.Detail (Evision v0.1.14)
Link to this section Summary
Types
Type that represents an Evision.Detail
struct.
Functions
Estimates focal lengths for each given camera.
Estimates focal lengths for each given camera.
Positional Arguments
featuresFinder:
Evision.Feature2D
.
Positional Arguments
featuresFinder:
Evision.Feature2D
.
Positional Arguments
featuresFinder:
Evision.Feature2D
.
Positional Arguments
featuresFinder:
Evision.Feature2D
.
Positional Arguments
- img:
Evision.Mat
- num_levels:
int
Return
- pyr:
[Evision.Mat]
Python prototype (for reference):
Positional Arguments
- img:
Evision.Mat
- num_levels:
int
Return
- pyr:
[Evision.Mat]
Python prototype (for reference):
Positional Arguments
- mask:
Evision.Mat
- sharpness:
float
Return
- weight:
Evision.Mat
Python prototype (for reference):
Tries to estimate focal lengths from the given homography under the assumption that the camera undergoes rotations around its centre only.
Positional Arguments
- features:
[Evision.Detail.ImageFeatures]
- pairwise_matches:
[Evision.Detail.MatchesInfo]
- conf_threshold:
float
Return
- retval:
std::vector<int>
Python prototype (for reference):
Positional Arguments
- pathes:
[String]
- pairwise_matches:
[Evision.Detail.MatchesInfo]
- conf_threshold:
float
Return
- retval:
String
Python prototype (for reference):
Positional Arguments
- tl1:
Point
- tl2:
Point
- sz1:
Size
- sz2:
Size
- roi:
Rect
Return
- retval:
bool
Python prototype (for reference):
Return
- pyr:
[Evision.Mat]
Python prototype (for reference):
Return
- pyr:
[Evision.Mat]
Python prototype (for reference):
Positional Arguments
- corners:
[Point]
- sizes:
[Size]
Return
- retval:
Rect
Python prototype (for reference):
Positional Arguments
- corners:
[Point]
- sizes:
[Size]
Return
- retval:
Rect
Python prototype (for reference):
Positional Arguments
- corners:
[Point]
Return
- retval:
Point
Python prototype (for reference):
Positional Arguments
- count:
int
- size:
int
- subset:
[int]
Python prototype (for reference):
Return
- retval:
int
Python prototype (for reference):
Tries to make panorama more horizontal (or vertical).
Link to this section Types
@type t() :: %Evision.Detail{ref: reference()}
Type that represents an Evision.Detail
struct.
ref.
reference()
The underlying erlang resource variable.
Link to this section Functions
@spec calibrateRotatingCamera([Evision.Mat.maybe_mat_in()]) :: Evision.Mat.t() | false | {:error, String.t()}
Estimates focal lengths for each given camera.
Positional Arguments
- hs:
[Evision.Mat]
Return
- retval:
bool
- k:
Evision.Mat
.
Python prototype (for reference):
calibrateRotatingCamera(Hs[, K]) -> retval, K
@spec calibrateRotatingCamera( [Evision.Mat.maybe_mat_in()], [{atom(), term()}, ...] | nil ) :: Evision.Mat.t() | false | {:error, String.t()}
Estimates focal lengths for each given camera.
Positional Arguments
- hs:
[Evision.Mat]
Return
- retval:
bool
- k:
Evision.Mat
.
Python prototype (for reference):
calibrateRotatingCamera(Hs[, K]) -> retval, K
@spec computeImageFeatures2(Evision.Feature2D.t(), Evision.Mat.maybe_mat_in()) :: Evision.Detail.ImageFeatures.t() | {:error, String.t()}
Positional Arguments
featuresFinder:
Evision.Feature2D
.image:
Evision.Mat
.
Keyword Arguments
- mask:
Evision.Mat
.
Return
- features:
Evision.Detail.ImageFeatures
.
Python prototype (for reference):
computeImageFeatures2(featuresFinder, image[, mask]) -> features
@spec computeImageFeatures2( Evision.Feature2D.t(), Evision.Mat.maybe_mat_in(), [{atom(), term()}, ...] | nil ) :: Evision.Detail.ImageFeatures.t() | {:error, String.t()}
Positional Arguments
featuresFinder:
Evision.Feature2D
.image:
Evision.Mat
.
Keyword Arguments
- mask:
Evision.Mat
.
Return
- features:
Evision.Detail.ImageFeatures
.
Python prototype (for reference):
computeImageFeatures2(featuresFinder, image[, mask]) -> features
@spec computeImageFeatures(Evision.Feature2D.t(), [Evision.Mat.maybe_mat_in()]) :: [Evision.Detail.ImageFeatures.t()] | {:error, String.t()}
Positional Arguments
featuresFinder:
Evision.Feature2D
.images:
[Evision.Mat]
.
Keyword Arguments
- masks:
[Evision.Mat]
.
Return
- features:
[Evision.Detail.ImageFeatures]
.
Python prototype (for reference):
computeImageFeatures(featuresFinder, images[, masks]) -> features
@spec computeImageFeatures( Evision.Feature2D.t(), [Evision.Mat.maybe_mat_in()], [{atom(), term()}, ...] | nil ) :: [Evision.Detail.ImageFeatures.t()] | {:error, String.t()}
Positional Arguments
featuresFinder:
Evision.Feature2D
.images:
[Evision.Mat]
.
Keyword Arguments
- masks:
[Evision.Mat]
.
Return
- features:
[Evision.Detail.ImageFeatures]
.
Python prototype (for reference):
computeImageFeatures(featuresFinder, images[, masks]) -> features
@spec createLaplacePyr(Evision.Mat.maybe_mat_in(), integer(), [ Evision.Mat.maybe_mat_in() ]) :: [Evision.Mat.t()] | {:error, String.t()}
Positional Arguments
- img:
Evision.Mat
- num_levels:
int
Return
- pyr:
[Evision.Mat]
Python prototype (for reference):
createLaplacePyr(img, num_levels, pyr) -> pyr
@spec createLaplacePyrGpu(Evision.Mat.maybe_mat_in(), integer(), [ Evision.Mat.maybe_mat_in() ]) :: [Evision.Mat.t()] | {:error, String.t()}
Positional Arguments
- img:
Evision.Mat
- num_levels:
int
Return
- pyr:
[Evision.Mat]
Python prototype (for reference):
createLaplacePyrGpu(img, num_levels, pyr) -> pyr
@spec createWeightMap( Evision.Mat.maybe_mat_in(), number(), Evision.Mat.maybe_mat_in() ) :: Evision.Mat.t() | {:error, String.t()}
Positional Arguments
- mask:
Evision.Mat
- sharpness:
float
Return
- weight:
Evision.Mat
Python prototype (for reference):
createWeightMap(mask, sharpness, weight) -> weight
@spec focalsFromHomography( Evision.Mat.maybe_mat_in(), number(), number(), boolean(), boolean() ) :: :ok | {:error, String.t()}
Tries to estimate focal lengths from the given homography under the assumption that the camera undergoes rotations around its centre only.
Positional Arguments
h:
Evision.Mat
.Homography.
f0:
double
.Estimated focal length along X axis.
f1:
double
.Estimated focal length along Y axis.
f0_ok:
bool
.True, if f0 was estimated successfully, false otherwise.
f1_ok:
bool
.True, if f1 was estimated successfully, false otherwise.
See "Construction of Panoramic Image Mosaics with Global and Local Alignment" by Heung-Yeung Shum and Richard Szeliski.
Python prototype (for reference):
focalsFromHomography(H, f0, f1, f0_ok, f1_ok) -> None
@spec leaveBiggestComponent( [Evision.Detail.ImageFeatures.t()], [Evision.Detail.MatchesInfo.t()], number() ) :: [integer()] | {:error, String.t()}
Positional Arguments
- features:
[Evision.Detail.ImageFeatures]
- pairwise_matches:
[Evision.Detail.MatchesInfo]
- conf_threshold:
float
Return
- retval:
std::vector<int>
Python prototype (for reference):
leaveBiggestComponent(features, pairwise_matches, conf_threshold) -> retval
@spec matchesGraphAsString([binary()], [Evision.Detail.MatchesInfo.t()], number()) :: binary() | {:error, String.t()}
Positional Arguments
- pathes:
[String]
- pairwise_matches:
[Evision.Detail.MatchesInfo]
- conf_threshold:
float
Return
- retval:
String
Python prototype (for reference):
matchesGraphAsString(pathes, pairwise_matches, conf_threshold) -> retval
@spec normalizeUsingWeightMap(Evision.Mat.maybe_mat_in(), Evision.Mat.maybe_mat_in()) :: Evision.Mat.t() | {:error, String.t()}
Positional Arguments
- weight:
Evision.Mat
Return
- src:
Evision.Mat
Python prototype (for reference):
normalizeUsingWeightMap(weight, src) -> src
@spec overlapRoi( {number(), number()}, {number(), number()}, {number(), number()}, {number(), number()}, {number(), number(), number(), number()} ) :: boolean() | {:error, String.t()}
Positional Arguments
- tl1:
Point
- tl2:
Point
- sz1:
Size
- sz2:
Size
- roi:
Rect
Return
- retval:
bool
Python prototype (for reference):
overlapRoi(tl1, tl2, sz1, sz2, roi) -> retval
@spec restoreImageFromLaplacePyr([Evision.Mat.maybe_mat_in()]) :: [Evision.Mat.t()] | {:error, String.t()}
Return
- pyr:
[Evision.Mat]
Python prototype (for reference):
restoreImageFromLaplacePyr(pyr) -> pyr
@spec restoreImageFromLaplacePyrGpu([Evision.Mat.maybe_mat_in()]) :: [Evision.Mat.t()] | {:error, String.t()}
Return
- pyr:
[Evision.Mat]
Python prototype (for reference):
restoreImageFromLaplacePyrGpu(pyr) -> pyr
@spec resultRoi([{number(), number()}], [{number(), number()}]) :: {number(), number(), number(), number()} | {:error, String.t()}
Positional Arguments
- corners:
[Point]
- sizes:
[Size]
Return
- retval:
Rect
Python prototype (for reference):
resultRoi(corners, sizes) -> retval
@spec resultRoiIntersection([{number(), number()}], [{number(), number()}]) :: {number(), number(), number(), number()} | {:error, String.t()}
Positional Arguments
- corners:
[Point]
- sizes:
[Size]
Return
- retval:
Rect
Python prototype (for reference):
resultRoiIntersection(corners, sizes) -> retval
Positional Arguments
- corners:
[Point]
Return
- retval:
Point
Python prototype (for reference):
resultTl(corners) -> retval
Positional Arguments
- count:
int
- size:
int
- subset:
[int]
Python prototype (for reference):
selectRandomSubset(count, size, subset) -> None
Return
- retval:
int
Python prototype (for reference):
stitchingLogLevel() -> retval
@spec waveCorrect([Evision.Mat.maybe_mat_in()], integer()) :: [Evision.Mat.t()] | {:error, String.t()}
Tries to make panorama more horizontal (or vertical).
Positional Arguments
kind:
WaveCorrectKind
.Correction kind, see detail::WaveCorrectKind.
Return
rmats:
[Evision.Mat]
.Camera rotation matrices.
Python prototype (for reference):
waveCorrect(rmats, kind) -> rmats