org.opencv.core.Size.area()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.1k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中org.opencv.core.Size.area()方法的一些代码示例,展示了Size.area()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Size.area()方法的具体详情如下:
包路径:org.opencv.core.Size
类名称:Size
方法名:area

Size.area介绍

暂无

代码示例

代码示例来源:origin: us.ihmc/ihmc-perception

private void generateBoardPoints()
{
 boardPoints = new Point3[(int) boardInnerCrossPattern.area()];
 int count = 0;
 for (int j = 0; j < boardInnerCrossPattern.height; j++)
 {
   for (int i = 0; i < boardInnerCrossPattern.width; i++)
   {
    double x = gridWidth * (i - boardInnerCrossPattern.width / 2 + 0.5);
    double y = -gridWidth * (j - boardInnerCrossPattern.height / 2 + 0.5);
    boardPoints[count++] = new Point3(x, y, 0.0);
   }
 }
}

代码示例来源:origin: us.ihmc/IHMCPerception

private void generateBoardPoints()
{
 boardPoints = new Point3[(int) boardInnerCrossPattern.area()];
 int count = 0;
 for (int j = 0; j < boardInnerCrossPattern.height; j++)
 {
   for (int i = 0; i < boardInnerCrossPattern.width; i++)
   {
    double x = gridWidth * (i - boardInnerCrossPattern.width / 2 + 0.5);
    double y = -gridWidth * (j - boardInnerCrossPattern.height / 2 + 0.5);
    boardPoints[count++] = new Point3(x, y, 0.0);
   }
 }
}

代码示例来源:origin: kongqw/OpenCVForAndroid

mCameraArea = mGray.size().area();

相关文章