-
Notifications
You must be signed in to change notification settings - Fork 751
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Map
std::vector
of CameraParams
, ImageFeatures
, and `Matches…
…Info` from `cv::detail` (issue bytedeco/javacv#2027)
- Loading branch information
Showing
92 changed files
with
464 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
111 changes: 111 additions & 0 deletions
111
opencv/src/gen/java/org/bytedeco/opencv/opencv_stitching/CameraParamsVector.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
// Targeted by JavaCPP version 1.5.9-SNAPSHOT: DO NOT EDIT THIS FILE | ||
|
||
package org.bytedeco.opencv.opencv_stitching; | ||
|
||
import org.bytedeco.javacpp.annotation.Index; | ||
import java.nio.*; | ||
import org.bytedeco.javacpp.*; | ||
import org.bytedeco.javacpp.annotation.*; | ||
|
||
import static org.bytedeco.javacpp.presets.javacpp.*; | ||
import static org.bytedeco.openblas.global.openblas_nolapack.*; | ||
import static org.bytedeco.openblas.global.openblas.*; | ||
import org.bytedeco.opencv.opencv_core.*; | ||
import static org.bytedeco.opencv.global.opencv_core.*; | ||
import org.bytedeco.opencv.opencv_imgproc.*; | ||
import static org.bytedeco.opencv.global.opencv_imgproc.*; | ||
import static org.bytedeco.opencv.global.opencv_imgcodecs.*; | ||
import org.bytedeco.opencv.opencv_videoio.*; | ||
import static org.bytedeco.opencv.global.opencv_videoio.*; | ||
import org.bytedeco.opencv.opencv_highgui.*; | ||
import static org.bytedeco.opencv.global.opencv_highgui.*; | ||
import org.bytedeco.opencv.opencv_flann.*; | ||
import static org.bytedeco.opencv.global.opencv_flann.*; | ||
import org.bytedeco.opencv.opencv_features2d.*; | ||
import static org.bytedeco.opencv.global.opencv_features2d.*; | ||
import org.bytedeco.opencv.opencv_calib3d.*; | ||
import static org.bytedeco.opencv.global.opencv_calib3d.*; | ||
import org.bytedeco.opencv.opencv_dnn.*; | ||
import static org.bytedeco.opencv.global.opencv_dnn.*; | ||
import org.bytedeco.opencv.opencv_objdetect.*; | ||
import static org.bytedeco.opencv.global.opencv_objdetect.*; | ||
import org.bytedeco.opencv.opencv_video.*; | ||
import static org.bytedeco.opencv.global.opencv_video.*; | ||
import org.bytedeco.opencv.opencv_ml.*; | ||
import static org.bytedeco.opencv.global.opencv_ml.*; | ||
import org.bytedeco.opencv.opencv_shape.*; | ||
import static org.bytedeco.opencv.global.opencv_shape.*; | ||
import org.bytedeco.opencv.opencv_xfeatures2d.*; | ||
import static org.bytedeco.opencv.global.opencv_xfeatures2d.*; | ||
|
||
import static org.bytedeco.opencv.global.opencv_stitching.*; | ||
|
||
@Name("std::vector<cv::detail::CameraParams>") @Properties(inherit = org.bytedeco.opencv.presets.opencv_stitching.class) | ||
public class CameraParamsVector extends Pointer { | ||
static { Loader.load(); } | ||
/** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ | ||
public CameraParamsVector(Pointer p) { super(p); } | ||
public CameraParamsVector(CameraParams value) { this(1); put(0, value); } | ||
public CameraParamsVector(CameraParams ... array) { this(array.length); put(array); } | ||
public CameraParamsVector() { allocate(); } | ||
public CameraParamsVector(long n) { allocate(n); } | ||
private native void allocate(); | ||
private native void allocate(@Cast("size_t") long n); | ||
public native @Name("operator =") @ByRef CameraParamsVector put(@ByRef CameraParamsVector x); | ||
|
||
public boolean empty() { return size() == 0; } | ||
public native long size(); | ||
public void clear() { resize(0); } | ||
public native void resize(@Cast("size_t") long n); | ||
|
||
@Index(function = "at") public native @ByRef CameraParams get(@Cast("size_t") long i); | ||
public native CameraParamsVector put(@Cast("size_t") long i, CameraParams value); | ||
|
||
public native @ByVal Iterator insert(@ByVal Iterator pos, @ByRef CameraParams value); | ||
public native @ByVal Iterator erase(@ByVal Iterator pos); | ||
public native @ByVal Iterator begin(); | ||
public native @ByVal Iterator end(); | ||
@NoOffset @Name("iterator") public static class Iterator extends Pointer { | ||
public Iterator(Pointer p) { super(p); } | ||
public Iterator() { } | ||
|
||
public native @Name("operator ++") @ByRef Iterator increment(); | ||
public native @Name("operator ==") boolean equals(@ByRef Iterator it); | ||
public native @Name("operator *") @ByRef @Const CameraParams get(); | ||
} | ||
|
||
public CameraParams[] get() { | ||
CameraParams[] array = new CameraParams[size() < Integer.MAX_VALUE ? (int)size() : Integer.MAX_VALUE]; | ||
for (int i = 0; i < array.length; i++) { | ||
array[i] = get(i); | ||
} | ||
return array; | ||
} | ||
@Override public String toString() { | ||
return java.util.Arrays.toString(get()); | ||
} | ||
|
||
public CameraParams pop_back() { | ||
long size = size(); | ||
CameraParams value = get(size - 1); | ||
resize(size - 1); | ||
return value; | ||
} | ||
public CameraParamsVector push_back(CameraParams value) { | ||
long size = size(); | ||
resize(size + 1); | ||
return put(size, value); | ||
} | ||
public CameraParamsVector put(CameraParams value) { | ||
if (size() != 1) { resize(1); } | ||
return put(0, value); | ||
} | ||
public CameraParamsVector put(CameraParams ... array) { | ||
if (size() != array.length) { resize(array.length); } | ||
for (int i = 0; i < array.length; i++) { | ||
put(i, array[i]); | ||
} | ||
return this; | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.