create_rectification_gridcreate_rectification_gridCreateRectificationGridCreateRectificationGridcreate_rectification_grid创建校正网格(算子)

名称

create_rectification_gridcreate_rectification_gridCreateRectificationGridCreateRectificationGridcreate_rectification_grid — 生成一个描述校正网格的 PostScript 文件。

签名

create_rectification_grid( : : Width, NumSquares, GridFile : )

Herror create_rectification_grid(double Width, const Hlong NumSquares, const char* GridFile)

Herror T_create_rectification_grid(const Htuple Width, const Htuple NumSquares, const Htuple GridFile)

void CreateRectificationGrid(const HTuple& Width, const HTuple& NumSquares, const HTuple& GridFile)

static void HMisc::CreateRectificationGrid(double Width, Hlong NumSquares, const HString& GridFile)

static void HMisc::CreateRectificationGrid(double Width, Hlong NumSquares, const char* GridFile)

static void HMisc::CreateRectificationGrid(double Width, Hlong NumSquares, const wchar_t* GridFile)   ( Windows only)

static void HOperatorSet.CreateRectificationGrid(HTuple width, HTuple numSquares, HTuple gridFile)

static void HMisc.CreateRectificationGrid(double width, int numSquares, string gridFile)

def create_rectification_grid(width: float, num_squares: int, grid_file: str) -> None

描述

create_rectification_gridcreate_rectification_gridCreateRectificationGridCreateRectificationGridCreateRectificationGridcreate_rectification_grid 生成一个由 NumSquaresNumSquaresNumSquaresNumSquaresnumSquaresnum_squares x NumSquaresNumSquaresNumSquaresNumSquaresnumSquaresnum_squares 个黑白相间的方格组成的棋盘格图案。该图案的宽度(及高度)为 WidthWidthWidthWidthwidthwidth。图案周围有一条宽度为单个方格宽度 0.3 倍的内框,该内框延续了棋盘格图案。图案由一条宽度为单个方格宽度 0.7 倍的纯白色外框完成。图案中心有两个圆形标记,一个位于白色方格上为黑色,另一个位于黑色方格上为白色。这两个标记的半径均相当于其所在方格边长的一半。gen_grid_rectification_mapgen_grid_rectification_mapGenGridRectificationMapGenGridRectificationMapGenGridRectificationMapgen_grid_rectification_map 会利用这些标记,将检测到的网格点布局旋转至正确方向。假设在正确方向下,黑色标记位于白色标记的左侧。文件 GridFileGridFileGridFileGridFilegridFilegrid_file 包含校正网格的 PostScript 描述。

执行信息

参数

WidthWidthWidthWidthwidthwidth (输入控制)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

棋盘格图案的宽度(以米为单位,不含两侧边框)。

默认值: 0.17

建议值: 1.2, 0.8, 0.6, 0.4, 0.2, 0.1

建议增量: 0.1

限制: 0.0 < Width

NumSquaresNumSquaresNumSquaresNumSquaresnumSquaresnum_squares (输入控制)  integer HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)

每行和每列的方格数。

默认值: 17

建议值: 11, 13, 15, 17, 19, 21, 23, 25, 27

建议增量: 2

限制: 2 <= NumSquares

GridFileGridFileGridFileGridFilegridFilegrid_file (输入控制)  filename.write HTuplestrHTupleHtuple (string) (string) (HString) (char*)

PostScript 文件的文件名。

默认值: 'rectification_grid.ps' "rectification_grid.ps" "rectification_grid.ps" "rectification_grid.ps" "rectification_grid.ps" "rectification_grid.ps"

文件扩展名: .ps

结果

find_rectification_gridfind_rectification_gridFindRectificationGridFindRectificationGridFindRectificationGridfind_rectification_grid 返回 2 (H_MSG_TRUE),当所有参数值均正确且文件已成功写入。如有必要,则抛出异常。

另见

find_rectification_gridfind_rectification_gridFindRectificationGridFindRectificationGridFindRectificationGridfind_rectification_grid, saddle_points_sub_pixsaddle_points_sub_pixSaddlePointsSubPixSaddlePointsSubPixSaddlePointsSubPixsaddle_points_sub_pix, connect_grid_pointsconnect_grid_pointsConnectGridPointsConnectGridPointsConnectGridPointsconnect_grid_points, gen_grid_rectification_mapgen_grid_rectification_mapGenGridRectificationMapGenGridRectificationMapGenGridRectificationMapgen_grid_rectification_map

模块

基础