On some camera models, you can only configure rows and not columns when you're creating regions. In this case, each region covers the entire sensor width and can be considered to have a single column.
// ** In this example, we define two regions in horizontal direction// that will be transmitted as a single image. **// Enable the ability to configure multiple columnscamera.BslMultipleROIColumnsEnable.SetValue(true);// Select column 1camera.BslMultipleROIColumnSelector.SetValue(BslMultipleROIColumnSelector_Column1);// The first region should have a horizontal offset of 100 and a width of 300 pixelscamera.BslMultipleROIColumnOffset.SetValue(100);camera.BslMultipleROIColumnSize.SetValue(300);// Select column 2camera.BslMultipleROIColumnSelector.SetValue(BslMultipleROIColumnSelector_Column2);// The second region should have a horizontal offset of 500 and a width of 400 pixelscamera.BslMultipleROIColumnOffset.SetValue(500);camera.BslMultipleROIColumnSize.SetValue(400);// We only need one row, so disable the ability to configure multiple rowscamera.BslMultipleROIRowsEnable.SetValue(false);// Both regions should have a vertical offset of 200 and a height of 500camera.OffsetY.SetValue(200);camera.Height.SetValue(500);
INodeMap&nodemap=camera.GetNodeMap();// ** In this example, we define two regions in horizontal direction// that will be transmitted as a single image. **// Enable the ability to configure multiple columnsCBooleanParameter(nodemap,"BslMultipleROIColumnsEnable").SetValue(true);// Select column 1CEnumParameter(nodemap,"BslMultipleROIColumnSelector").SetValue("Column1");// The first region should have a horizontal offset of 100 and a width of 300 pixelsCIntegerParameter(nodemap,"BslMultipleROIColumnOffset").SetValue(100);CIntegerParameter(nodemap,"BslMultipleROIColumnSize").SetValue(300);// Select column 2CEnumParameter(nodemap,"BslMultipleROIColumnSelector").SetValue("Column2");// The second region should have a horizontal offset of 500 and a width of 400 pixelsCIntegerParameter(nodemap,"BslMultipleROIColumnOffset").SetValue(500);CIntegerParameter(nodemap,"BslMultipleROIColumnSize").SetValue(400);// We only need one row, so disable the ability to configure multiple rowsCBooleanParameter(nodemap,"BslMultipleROIRowsEnable").SetValue(false);// Both regions should have a vertical offset of 200 and a height of 500CIntegerParameter(nodemap,"OffsetY").SetValue(200);CIntegerParameter(nodemap,"Height").SetValue(500);
// ** In this example, we define two regions in horizontal direction// that will be transmitted as a single image. **// Enable the ability to configure multiple columnscamera.Parameters[PLCamera.BslMultipleROIColumnsEnable].SetValue(true);// Select column 1camera.Parameters[PLCamera.BslMultipleROIColumnSelector].SetValue(PLCamera.BslMultipleROIColumnSelector.Column1);// The first region should have a horizontal offset of 100 and a width of 300 pixelscamera.Parameters[PLCamera.BslMultipleROIColumnOffset].SetValue(100);camera.Parameters[PLCamera.BslMultipleROIColumnSize].SetValue(300);// Select column 2camera.Parameters[PLCamera.BslMultipleROIColumnSelector].SetValue(PLCamera.BslMultipleROIColumnSelector.Column2);// The second region should have a horizontal offset of 500 and a width of 400 pixelscamera.Parameters[PLCamera.BslMultipleROIColumnOffset].SetValue(500);camera.Parameters[PLCamera.BslMultipleROIColumnSize].SetValue(400);// We only need one row, so disable the ability to configure multiple rowscamera.Parameters[PLCamera.BslMultipleROIRowsEnable].SetValue(false);// Both regions should have a vertical offset of 200 and a height of 500camera.Parameters[PLCamera.OffsetY].SetValue(200);camera.Parameters[PLCamera.Height].SetValue(500);
/* Macro to check for errors */#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)GENAPIC_RESULTerrRes=GENAPI_E_OK;/* Return value of pylon methods *//* ** In this example, we define two regions in horizontal direction *//* that will be transmitted as a single image. ** *//* Enable the ability to configure multiple columns */errRes=PylonDeviceSetBooleanFeature(hdev,"BslMultipleROIColumnsEnable",1);CHECK(errRes);/* Select column 1 */errRes=PylonDeviceFeatureFromString(hdev,"BslMultipleROIColumnSelector","Column1");CHECK(errRes);/* The first region should have a horizontal offset of 100 and a width of 300 pixels */errRes=PylonDeviceSetIntegerFeature(hdev,"BslMultipleROIColumnOffset",100);CHECK(errRes);errRes=PylonDeviceSetIntegerFeature(hdev,"BslMultipleROIColumnSize",300);CHECK(errRes);/* Select column 2 */errRes=PylonDeviceFeatureFromString(hdev,"BslMultipleROIColumnSelector","Column2");CHECK(errRes);/* The second region should have a horizontal offset of 500 and a width of 400 pixels */errRes=PylonDeviceSetIntegerFeature(hdev,"BslMultipleROIColumnOffset",500);CHECK(errRes);errRes=PylonDeviceSetIntegerFeature(hdev,"BslMultipleROIColumnSize",400);CHECK(errRes);/* We only need one row, so disable the ability to configure multiple rows */errRes=PylonDeviceSetBooleanFeature(hdev,"BslMultipleROIRowsEnable",0);CHECK(errRes);/* Both regions should have a vertical offset of 200 and a height of 500 */errRes=PylonDeviceSetIntegerFeature(hdev,"OffsetY",200);CHECK(errRes);errRes=PylonDeviceSetIntegerFeature(hdev,"Height",500);CHECK(errRes);
# ** In this example, we define two regions in horizontal direction# that will be transmitted as a single image. **# Enable the ability to configure multiple columnscamera.BslMultipleROIColumnsEnable.Value=True# Select column 1camera.BslMultipleROIColumnSelector.Value="Column1"# The first region should have a horizontal offset of 100 and a width of 300 pixelscamera.BslMultipleROIColumnOffset.Value=100camera.BslMultipleROIColumnSize.Value=300# Select column 2camera.BslMultipleROIColumnSelector.Value="Column2"# The second region should have a horizontal offset of 500 and a width of 400 pixelscamera.BslMultipleROIColumnOffset.Value=500camera.BslMultipleROIColumnSize.Value=400# We only need one row, so disable the ability to configure multiple rowscamera.BslMultipleROIRowsEnable.Value=False# Both regions should have a vertical offset of 200 and a height of 500camera.OffsetY.Value=200camera.Height.Value=500