Center X and Center Y(BCON for MIPI)#
機能を使用する#
中心Xを使用#
画像を水平方向にセンタリングするには、BslCenterX
コマンドを実行します。
The camera adjusts the OffsetX
parameter value to center the image ROI horizontally. This is a one-time operation. When you change the width of the image ROI, you must execute the command again.
中心Yを使用#
画像を垂直方向にセンタリングするには、BslCenterY
コマンドを実行します。
The camera adjusts the OffsetY
parameter value to center the image ROI vertically. This is a one-time operation. When you change the height of the image ROI, you must execute the command again.
サンプルコード#
// Center the image ROI
camera.BslCenterX.Execute();
camera.BslCenterY.Execute();
INodeMap& nodemap = camera.GetNodeMap();
// Center the image ROI
CCommandParameter(nodemap, "BslCenterX").Execute();
CCommandParameter(nodemap, "BslCenterY").Execute();
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK; /* Return value of pylon methods */
/* Center the image ROI */
errRes = PylonDeviceExecuteCommandFeature(hdev, "BslCenterX");
CHECK(errRes);
errRes = PylonDeviceExecuteCommandFeature(hdev, "BslCenterY");
CHECK(errRes);
pylonViewerアを使用して、パラメーターを簡単に設定することもできます。