本文整理汇总了Java中com.googlecode.javacpp.FloatPointer类的典型用法代码示例。如果您正苦于以下问题:Java FloatPointer类的具体用法?Java FloatPointer怎么用?Java FloatPointer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FloatPointer类属于com.googlecode.javacpp包,在下文中一共展示了FloatPointer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: floatPointerToString
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
/** Returns a string representation of the given float pointer.
*
* @param floatPointer the given float pointer
* @return a string representation of the given float pointer
*/
private String floatPointerToString(final FloatPointer floatPointer) {
final StringBuilder stringBuilder = new StringBuilder();
boolean isFirst = true;
stringBuilder.append('[');
for (int i = 0; i < floatPointer.capacity(); i++) {
if (isFirst) {
isFirst = false;
} else {
stringBuilder.append(", ");
}
stringBuilder.append(floatPointer.get(i));
}
stringBuilder.append(']');
return stringBuilder.toString();
}
示例2: RGBDOdometry
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
@Namespace("cv") public static native boolean RGBDOdometry(@InputMat CvMat Rt, CvMat initRt,
IplImage image0, IplImage depth0, IplImage mask0,
IplImage image1, IplImage depth1, IplImage mask1,
CvMat cameraMatrix, float minDepth/*=0*/, float maxDepth/*=4*/, float maxDepthDiff/*=0.07*/,
@Const @StdVector IntPointer iterCounts/*=null*/,
@Const @StdVector FloatPointer minGradientMagnitudes/*=null*/,
int transformType/*=RIGID_BODY_MOTION*/);
示例3: cvCalcOpticalFlowPyrLK
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public static native void cvCalcOpticalFlowPyrLK(CvArr prev, CvArr curr, CvArr prev_pyr,
CvArr curr_pyr, CvPoint2D32f prev_features, CvPoint2D32f curr_features,
int count, @ByVal CvSize win_size, int level, @Cast("char*") byte[] status,
FloatPointer track_error, @ByVal CvTermCriteria criteria, int flags);
示例4: cvCalcAffineFlowPyrLK
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public static native void cvCalcAffineFlowPyrLK(CvArr prev, CvArr curr, CvArr prev_pyr,
CvArr curr_pyr, CvPoint2D32f prev_features, CvPoint2D32f curr_features,
FloatPointer matrices, int count, @ByVal CvSize win_size, int level,
@Cast("char*") byte[] status, FloatPointer track_error, @ByVal CvTermCriteria criteria, int flags);
示例5: call
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public native void call(CvSVMKernel o, int vec_count, int vec_size, @Cast("const float**")
PointerPointer vecs, @Const FloatPointer another, FloatPointer results);
示例6: cvSnakeImage
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public static native void cvSnakeImage(IplImage image, CvPoint points, int length,
FloatPointer alpha, FloatPointer beta, FloatPointer gamma, int coeff_usage,
@ByVal CvSize win, @ByVal CvTermCriteria criteria, int calc_gradient/*=1*/);
示例7: cvMakeHistHeaderForArray
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public static CvHistogram cvMakeHistHeaderForArray(int dims, int[] sizes, CvHistogram hist,
FloatPointer data, float[][] ranges/*=null*/, int uniform/*=1*/) {
return cvMakeHistHeaderForArray(dims, sizes, hist, data, ranges == null ? null : new PointerPointer(ranges), uniform);
}
示例8: cvDistTransform
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public static native void cvDistTransform(CvArr src, CvArr dst, int distance_type/*=CV_DIST_L2*/,
int mask_size/*=3*/, FloatPointer mask/*=null*/, CvArr labels/*=null*/, int labelType/*=CV_DIST_LABEL_CCOMP*/);
示例9: cvFitLine
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public static native void cvFitLine(CvArr points, int dist_type, double param,
double reps, double aeps, FloatPointer line);
示例10: getPoints
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public native void getPoints(@InputArray FloatPointer idx, @OutputArray CvMat pts,
@OutputArray IntPointer labels/*=null*/);
示例11: svmDetector
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
@Const @StdVector
public native FloatPointer svmDetector();
示例12: Index
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public Index(FloatPointer features, IndexParams params, int distType/*=FLANN_DIST_L2*/) {
allocate(features, params, distType);
}
示例13: allocate
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
private native void allocate(@InputArray FloatPointer features, @ByRef IndexParams params,
@Cast("cvflann::flann_distance_t") int distType);
示例14: build
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public native void build(@InputArray FloatPointer features, @ByRef IndexParams params,
@Cast("cvflann::flann_distance_t") int distType/*=FLANN_DIST_L2*/);
示例15: knnSearch
import com.googlecode.javacpp.FloatPointer; //导入依赖的package包/类
public native void knnSearch(@InputArray FloatPointer query, @OutputArray IntPointer indices,
@OutputArray FloatPointer dists, int knn, @ByRef SearchParams params/*=SearchParams()*/);