This website is being translated through machine translation by a third-party service. Basler does not warrant the accuracy, reliability or timeliness of any information translated by this system and will not accept liability for loss or damage incurred as a result. Content that has not yet been translated appears in English. Switch to English version
Parameter names may not apply to your camera model.
To display appropriate parameter names, select a camera model:
a2A1280-125umSWIR
a2A1280-80gmSWIR
a2A1920-160ucBAS
a2A1920-160ucPRO
a2A1920-160umBAS
a2A1920-160umPRO
a2A1920-165g5cBAS
a2A1920-165g5mBAS
a2A1920-51gcBAS
a2A1920-51gcPRO
a2A1920-51gmBAS
a2A1920-51gmPRO
a2A2048-110umSWIR
a2A2048-114g5cBAS
a2A2048-114g5mBAS
a2A2048-114ucBAS
a2A2048-114ucPRO
a2A2048-114umBAS
a2A2048-114umPRO
a2A2048-35gmSWIR
a2A2048-37gcBAS
a2A2048-37gcPRO
a2A2048-37gmBAS
a2A2048-37gmPRO
a2A2440-98g5cBAS
a2A2440-98g5mBAS
a2A2448-105g5cBAS
a2A2448-105g5mBAS
a2A2448-120cc
a2A2448-120cm
a2A2448-210cc
a2A2448-210cm
a2A2448-23gcBAS
a2A2448-23gcPRO
a2A2448-23gmBAS
a2A2448-23gmPRO
a2A2448-75ucBAS
a2A2448-75ucPRO
a2A2448-75umBAS
a2A2448-75umPRO
a2A2560-20gmSWIR
a2A2560-70umSWIR
a2A2590-22gcBAS
a2A2590-22gcPRO
a2A2590-22gmBAS
a2A2590-22gmPRO
a2A2590-60ucBAS
a2A2590-60ucPRO
a2A2590-60umBAS
a2A2590-60umPRO
a2A2600-20gcBAS
a2A2600-20gcPRO
a2A2600-20gmBAS
a2A2600-20gmPRO
a2A2600-64ucBAS
a2A2600-64ucPRO
a2A2600-64umBAS
a2A2600-64umPRO
a2A2840-14gcBAS
a2A2840-14gcPRO
a2A2840-14gmBAS
a2A2840-14gmPRO
a2A2840-14gmUV
a2A2840-48ucBAS
a2A2840-48ucPRO
a2A2840-48umBAS
a2A2840-48umPRO
a2A2840-48umUV
a2A2840-67g5cBAS
a2A2840-67g5mBAS
a2A2840-67g5mUV
a2A2840-86cc
a2A2840-86cm
a2A3536-31ucBAS
a2A3536-31ucPRO
a2A3536-31umBAS
a2A3536-31umPRO
a2A3536-42g5cBAS
a2A3536-42g5mBAS
a2A3536-9gcBAS
a2A3536-9gcPRO
a2A3536-9gmBAS
a2A3536-9gmPRO
a2A3840-13gcBAS
a2A3840-13gcPRO
a2A3840-13gmBAS
a2A3840-13gmPRO
a2A3840-45ucBAS
a2A3840-45ucPRO
a2A3840-45umBAS
a2A3840-45umPRO
a2A4096-30ucBAS
a2A4096-30ucPRO
a2A4096-30umBAS
a2A4096-30umPRO
a2A4096-44g5cBAS
a2A4096-44g5mBAS
a2A4096-67cc
a2A4096-67cm
a2A4096-9gcBAS
a2A4096-9gcPRO
a2A4096-9gmBAS
a2A4096-9gmPRO
a2A4200-12gcBAS
a2A4200-12gcPRO
a2A4200-12gmBAS
a2A4200-12gmPRO
a2A4200-40ucBAS
a2A4200-40ucPRO
a2A4200-40umBAS
a2A4200-40umPRO
a2A4504-18ucBAS
a2A4504-18ucPRO
a2A4504-18umBAS
a2A4504-18umPRO
a2A4504-27g5cBAS
a2A4504-27g5mBAS
a2A4504-42cc
a2A4504-42cm
a2A4504-5gcBAS
a2A4504-5gcPRO
a2A4504-5gmBAS
a2A4504-5gmPRO
a2A4508-20ucBAS
a2A4508-20ucPRO
a2A4508-20umBAS
a2A4508-20umPRO
a2A4508-6gcBAS
a2A4508-6gcPRO
a2A4508-6gmBAS
a2A4508-6gmPRO
a2A5060-15ucBAS
a2A5060-15umBAS
a2A5060-21g5cBAS
a2A5060-21g5mBAS
a2A5060-35cc
a2A5060-35cm
a2A5060-4gcBAS
a2A5060-4gmBAS
a2A5320-23ucBAS
a2A5320-23ucPRO
a2A5320-23umBAS
a2A5320-23umPRO
a2A5320-34g5cBAS
a2A5320-34g5mBAS
a2A5320-52cc
a2A5320-52cm
a2A5320-7gcBAS
a2A5320-7gcPRO
a2A5320-7gmBAS
a2A5320-7gmPRO
a2A5328-15ucBAS
a2A5328-15ucPRO
a2A5328-15umBAS
a2A5328-15umPRO
a2A5328-22g5cBAS
a2A5328-22g5mBAS
a2A5328-35cc
a2A5328-35cm
a2A5328-4gcBAS
a2A5328-4gcPRO
a2A5328-4gmBAS
a2A5328-4gmPRO
a2A640-240gmSWIR
a2A640-240umSWIR
acA1280-60gc
acA1280-60gm
acA1300-200uc
acA1300-200um
acA1300-60gc
acA1300-60gm
acA1300-60gmNIR
acA1300-75gc
acA1300-75gm
acA1440-220uc
acA1440-220um
acA1440-73gc
acA1440-73gm
acA1600-20gc
acA1600-20uc
acA1600-60gc
acA1600-60gm
acA1920-150uc
acA1920-150um
acA1920-155uc
acA1920-155ucMED
acA1920-155um
acA1920-155umMED
acA1920-25gc
acA1920-25gm
acA1920-25uc
acA1920-25um
acA1920-40gc
acA1920-40gm
acA1920-40uc
acA1920-40ucMED
acA1920-40um
acA1920-40umMED
acA1920-48gc
acA1920-48gm
acA1920-50gc
acA1920-50gm
acA2000-165uc
acA2000-165um
acA2000-50gc
acA2000-50gm
acA2040-120uc
acA2040-120um
acA2040-25gc
acA2040-25gm
acA2040-25gmNIR
acA2040-35gc
acA2040-35gm
acA2040-55uc
acA2040-55um
acA2040-90uc
acA2040-90um
acA2040-90umNIR
acA2440-20gc
acA2440-20gm
acA2440-35uc
acA2440-35ucMED
acA2440-35um
acA2440-35umMED
acA2440-75uc
acA2440-75ucMED
acA2440-75um
acA2440-75umMED
acA2500-14gc
acA2500-14gm
acA2500-14uc
acA2500-14um
acA2500-20gc
acA2500-20gcMED
acA2500-20gm
acA2500-20gmMED
acA2500-60uc
acA2500-60um
acA3088-16gc
acA3088-16gm
acA3088-57uc
acA3088-57ucMED
acA3088-57um
acA3088-57umMED
acA3800-10gc
acA3800-10gm
acA3800-14uc
acA3800-14um
acA4024-29uc
acA4024-29um
acA4024-8gc
acA4024-8gm
acA4096-11gc
acA4096-11gm
acA4096-30uc
acA4096-30ucMED
acA4096-30um
acA4096-30umMED
acA4096-40uc
acA4096-40ucMED
acA4096-40um
acA4096-40umMED
acA4112-20uc
acA4112-20ucMED
acA4112-20um
acA4112-20umMED
acA4112-30uc
acA4112-30ucMED
acA4112-30um
acA4112-30umMED
acA4112-8gc
acA4112-8gm
acA5472-17uc
acA5472-17ucMED
acA5472-17um
acA5472-17umMED
acA5472-5gc
acA5472-5gm
acA640-121gm
acA640-300gc
acA640-300gm
acA640-750uc
acA640-750um
acA720-290gc
acA720-290gm
acA720-520uc
acA720-520um
acA800-200gc
acA800-200gm
acA800-510uc
acA800-510um
blaze-101
blaze-102
boA13440-17cm
boA1936-400cc
boA1936-400cm
boA2448-250cc
boA2448-250cm
boA2832-190cc
boA2832-190cm
boA4096-180cc
boA4096-180cm
boA4096-93cc
boA4096-93cm
boA4112-68cc
boA4112-68cm
boA4500-45cc
boA4500-45cm
boA4504-100cc
boA4504-100cm
boA5120-150cc
boA5120-150cm
boA5120-230cc
boA5120-230cm
boA5320-150cc
boA5320-150cm
boA5328-100cc
boA5328-100cm
boA6500-36cc
boA6500-36cm
boA8100-16cc
boA8100-16cm
boA9344-30cc
boA9344-30cm
boA9344-70cc
boA9344-70cm
daA1280-54uc
daA1280-54um
daA1440-220uc
daA1440-220um
daA1600-60uc
daA1600-60um
daA1920-15um
daA1920-160uc
daA1920-160um
daA1920-30uc
daA1920-30um
daA2448-70uc
daA2448-70um
daA2500-14uc
daA2500-14um
daA2500-60mc
daA2500-60mci
daA3840-30mc
daA3840-45uc
daA3840-45um
daA4200-30mci
daA720-520uc
daA720-520um
dmA1440-73gc
dmA1440-73gm
dmA1920-51gc
dmA1920-51gm
dmA2048-37gc
dmA2048-37gm
dmA2448-23gc
dmA2448-23gm
dmA2840-14gc
dmA2840-14gm
dmA3536-9gc
dmA3536-9gm
dmA4096-9gc
dmA4096-9gm
dmA720-290gc
dmA720-290gm
puA1280-54uc
puA1280-54um
puA1600-60uc
puA1600-60um
puA1920-30uc
puA1920-30um
puA2500-14uc
puA2500-14um
r2L16384-120cm
r2L2048-172cm
r2L2048-172g5m
r2L2048-29gc
r2L2048-58gm
r2L2048-62cc
r2L2048-62g5c
r2L4096-14gc
r2L4096-29gm
r2L4096-42cc
r2L4096-42g5c
r2L4096-84cm
r2L4096-84g5m
r2L8192-200cm
The information in this topic does not apply to your camera model.
The Defect Pixel Correction camera feature allows you to minimize the influence of sensitivity differences of individual pixels of the sensor.
In acquired images, some pixels may appear significantly brighter or darker than the rest, even if uniform light is used. This problem is caused by differences in sensitivity of the individual pixels which in turn are due to production tolerances.
Basler ace 2 R, ace 2 X, boost R, and dart M cameras support static defect pixel correction. This correction is based on files that are stored on the camera and contain a list of defect pixel coordinates.
"Static" means that always the same specified defect pixel coordinates are used for the correction process. During image acquisition, the intensity values of exactly these pixels are replaced based on the intensity values of their neighboring pixels.
The following defect pixel correction files can be stored on the camera:
Factory file: Contains the coordinates of defect pixels that were detected during camera production.
User file: Contains user-defined coordinates. You can upload this file to the camera. This allows you to define new defect pixels that might have occurred over time.
Info
Basler ace 2 X cameras also support dynamic pixel defect correction. For more information, see Pixel Correction Beyond.
To set the static defect pixel correction mode, set the BslStaticDefectPixelCorrectionMode parameter to one of the following values:
Factory (default): Static defect pixel correction is based on the defect pixels stored in the factory correction file.
User: Static defect pixel correction is based on the defect pixels stored in the user correction file. Note that when setting this mode via the pylon API, only the user-defined pixels will be used. When setting the User incl. Factory correction mode via the pylon Viewer, user-defined pixels will be used in addition to the pixels stored in the factory file.
Off: The camera does not perform static defect pixel corrections.
Before uploading a user defect pixel correction file, make sure that the file conforms to the following file format:
The file must start with a 4-byte header containing four bytes with value 0. Following the header, the file must contain defect pixel entries (up to 4096 defect pixels can be specified). Each entry consists of 32 bits with the following order: 14 bits y-coordinate, 14 bits x-coordinate, 4 bits type
Example: Defect pixel entry with the coordinate x = 1 and y = 2
Bit |31 18| |17 4| |3 0|
Value |00000000000010| |00000000000001| |0000|
| y = 2 | | X = 1 | |type|
To upload a user defect pixel correction file using the pylon Viewer:
In the Camera menu of the pylon Viewer, click File Access.
In the Camera File drop-down box, select User Defect Pixel Correction. If there's no User Defect Pixel Correction entry, uploading correction files is not supported by your camera.
Click Upload and navigate to the file that you want to upload.
Click Open.
To apply the user defect pixel correction file after uploading, make sure that the BslStaticDefectPixelCorrectionMode parameter is set to User and execute the BslStaticDefectPixelCorrectionReload command.
Downloading a defect pixel correction file, e.g., the factory correction file, might be useful if you want to add your own measured defect pixels to the downloaded file. You can store the complete list of defect pixel entries in a new user correction file.
To download a defect pixel correction file using the pylon Viewer:
In the Camera menu of the pylon Viewer, click File Access.
In the Camera File drop-down box, select Static Factory Defect Pixel Correction or Static User Defect Pixel Correction depending on which file you want to download. If there's no appropriate entry, downloading files is not supported by your camera.
Click Download, navigate to the directory where you want to save the file, and enter the desired file name.
The StaticDefectPixelCorrectionFileStatus parameter can take the following values:
FileStatusUnknown: The status of the defect pixel correction file is unknown. Acquire an image to change the file status.
FileOk: The defect pixel correction file is valid.
FileNotFound: The defect pixel correction file can't be found. It has never been uploaded or was deleted.
FileEmpty: The defect pixel correction file has no entries. The file header is valid but the file doesn't contain any defect pixels. The defect pixel correction process is aborted.
InvalidHeader: The defect pixel correction file header is invalid. The file must have a 4-byte file header.
InvalidSize: The defect pixel correction file size is invalid. The maximum number of defective pixels must not exceed 4096.
InvalidSorting: The sorting of entries in the defect pixel correction file is invalid. The defect pixel correction process is aborted.
InvalidFileEntry: At least one entry in the defect pixel correction file has an invalid size. The defect pixel correction process is aborted.
InvalidClustering: An invalid cluster has been found. Three or more adjacent pixels in a row are considered an invalid cluster. Any defect pixels between other defect pixels can't be corrected.
The defect pixel correction file can contain a maximum number of defect pixels. To get the number, get the value of the BslStaticDefectPixelCorrectionMaxDefects parameter.
Basler boost V cameras support static defect pixel correction. This correction is based on files that are stored on the camera and contain a list of defect pixel coordinates.
"Static" means that always the same specified defect pixel coordinates are used for the correction process. During image acquisition, the intensity values of exactly these pixels are replaced based on the intensity values of their neighboring pixels.
Use the feature tree of the pylon Viewer or the pylon API to perform defect pixel correction on boost V cameras.
To perform defect pixel correction on boost V cameras:
Set the BslStaticDefectPixelCorrectionMode parameter to the desired correction mode:
Factory: Only defect pixels whose coordinates are stored in the factory file are corrected. The factory file is generated during camera production and can't be changed.
User: You can specify custom defect pixel coordinates.
Off: The camera does not perform static defect pixel corrections.
If you selected User:
Find pixel errors in your images and write down the x and y coordinates of the defect pixels.
Set the BslStaticDefectPixelCorrectionYCoordinate parameter to the y coordinate of the first defect pixel.
Set the BslStaticDefectPixelCorrectionXSelector parameter to X0.
Set the BslStaticDefectPixelCorrectionXCoordinate parameter to the x coordinate of the first defect pixel.
If there's another defect pixel with the same y coordinate, but a different x coordinate, set the BslStaticDefectPixelCorrectionXSelector parameter to the next entry, e.g., X1, and enter the next x coordinate.
Repeat steps b to for all other pixel errors.
Execute the BslStaticDefectPixelCorrectionSave command to save changes to flash memory.
Info
You can use the BslStaticDefectPixelCorrectionCount parameter to check how many image pixels are currently being corrected.
You can set the BslStaticDefectPixelCorrectionTestMode parameter to On to set all corrected pixels to completely white. This helps to find pixels that are being corrected in your images.
The static pixel correction corrects pixels that have significantly lesser intensity values than their neighboring pixels, including completely black pixels.
The dynamic pixel correction corrects pixels that have significantly higher intensity values than their neighboring pixels, including completely white pixels. An internal threshold value defines when a pixel is detected as a "hot pixel". "Dynamic" means that the defect pixel correction is calculated individually for each acquired image.
// Set static user defect pixel correctioncamera.BslStaticDefectPixelCorrectionMode.SetValue(BslStaticDefectPixelCorrectionMode_User);// Reload static defect pixel correction filecamera.BslStaticDefectPixelCorrectionReload.Execute();
INodeMap&nodemap=camera.GetNodeMap();// Set static user defect pixel correctionCEnumParameter(nodemap,"BslStaticDefectPixelCorrectionMode").SetValue("User");// Reload static defect pixel correction fileCCommandParameter(nodemap,"BslStaticDefectPixelCorrectionReload").Execute();
// Set static user defect pixel correctioncamera.Parameters[PLCamera.BslStaticDefectPixelCorrectionMode].SetValue(PLCamera.BslStaticDefectPixelCorrectionMode.User);// Reload static defect pixel correction filecamera.Parameters[PLCamera.BslStaticDefectPixelCorrectionReload].Execute();
/* 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 *//* Set static user defect pixel correction */errRes=PylonDeviceFeatureFromString(hdev,"BslStaticDefectPixelCorrectionMode","User");CHECK(errRes);/* Reload static defect pixel correction file */errRes=PylonDeviceExecuteCommandFeature(hdev,"BslStaticDefectPixelCorrectionReload");CHECK(errRes);
# Set static user defect pixel correctioncamera.BslStaticDefectPixelCorrectionMode.Value="User"# Reload static defect pixel correction filecamera.BslStaticDefectPixelCorrectionReload.Execute()
// Set the defect pixel correction mode to Usercamera.BslStaticDefectPixelCorrectionMode.SetValue(BslStaticDefectPixelCorrectionMode_User);// Assume there are two defect pixels at coordinates (120,430) and (182,430)// Set the y coordinate to 430camera.BslStaticDefectPixelCorrectionYCoordinate.SetValue(430);// Select entry X0 and assign the first x coordinatecamera.BslStaticDefectPixelCorrectionXSelector.SetValue(BslStaticDefectPixelCorrectionXSelector_X0);camera.BslStaticDefectPixelCorrectionXCoordinate.SetValue(120);// Select entry X1 and assign the second x coordinate, which is in the same linecamera.BslStaticDefectPixelCorrectionXSelector.SetValue(BslStaticDefectPixelCorrectionXSelector_X1);camera.BslStaticDefectPixelCorrectionXCoordinate.SetValue(182);// Save changes to flash memorycamera.BslStaticDefectPixelCorrectionSave.Execute();
INodeMap&nodemap=camera.GetNodeMap();// Set the defect pixel correction mode to UserCEnumParameter(nodemap,"BslStaticDefectPixelCorrectionMode").SetValue("User");// Assume there are two defect pixels at coordinates (120,430) and (182,430)// Set the y coordinate to 430CIntegerParameter(nodemap,"BslStaticDefectPixelCorrectionYCoordinate").SetValue(430);// Select entry X0 and assign the first x coordinateCEnumParameter(nodemap,"BslStaticDefectPixelCorrectionXSelector").SetValue("X0");CIntegerParameter(nodemap,"BslStaticDefectPixelCorrectionXCoordinate").SetValue(120);// Select entry X1 and assign the second x coordinate, which is in the same lineCEnumParameter(nodemap,"BslStaticDefectPixelCorrectionXSelector").SetValue("X1");CIntegerParameter(nodemap,"BslStaticDefectPixelCorrectionXCoordinate").SetValue(182);// Save changes to flash memoryCCommandParameter(nodemap,"BslStaticDefectPixelCorrectionSave").Execute();
// Set the defect pixel correction mode to Usercamera.Parameters[PLCamera.BslStaticDefectPixelCorrectionMode].SetValue(PLCamera.BslStaticDefectPixelCorrectionMode.User);// Assume there are two defect pixels at coordinates (120,430) and (182,430)// Set the y coordinate to 430camera.Parameters[PLCamera.BslStaticDefectPixelCorrectionYCoordinate].SetValue(430);// Select entry X0 and assign the first x coordinatecamera.Parameters[PLCamera.BslStaticDefectPixelCorrectionXSelector].SetValue(PLCamera.BslStaticDefectPixelCorrectionXSelector.X0);camera.Parameters[PLCamera.BslStaticDefectPixelCorrectionXCoordinate].SetValue(120);// Select entry X1 and assign the second x coordinate, which is in the same linecamera.Parameters[PLCamera.BslStaticDefectPixelCorrectionXSelector].SetValue(PLCamera.BslStaticDefectPixelCorrectionXSelector.X1);camera.Parameters[PLCamera.BslStaticDefectPixelCorrectionXCoordinate].SetValue(182);// Save changes to flash memorycamera.Parameters[PLCamera.BslStaticDefectPixelCorrectionSave].Execute();
/* 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 *//* Set the defect pixel correction mode to User */errRes=PylonDeviceFeatureFromString(hdev,"BslStaticDefectPixelCorrectionMode","User");CHECK(errRes);/* Assume there are two defect pixels at coordinates (120,430) and (182,430) *//* Set the y coordinate to 430 */errRes=PylonDeviceSetIntegerFeature(hdev,"BslStaticDefectPixelCorrectionYCoordinate",430);CHECK(errRes);/* Select entry X0 and assign the first x coordinate */errRes=PylonDeviceFeatureFromString(hdev,"BslStaticDefectPixelCorrectionXSelector","X0");CHECK(errRes);errRes=PylonDeviceSetIntegerFeature(hdev,"BslStaticDefectPixelCorrectionXCoordinate",120);CHECK(errRes);/* Select entry X1 and assign the second x coordinate, which is in the same line */errRes=PylonDeviceFeatureFromString(hdev,"BslStaticDefectPixelCorrectionXSelector","X1");CHECK(errRes);errRes=PylonDeviceSetIntegerFeature(hdev,"BslStaticDefectPixelCorrectionXCoordinate",182);CHECK(errRes);/* Save changes to flash memory */errRes=PylonDeviceExecuteCommandFeature(hdev,"BslStaticDefectPixelCorrectionSave");CHECK(errRes);
# Set the defect pixel correction mode to Usercamera.BslStaticDefectPixelCorrectionMode.Value="User"# Assume there are two defect pixels at coordinates (120,430) and (182,430)# Set the y coordinate to 430camera.BslStaticDefectPixelCorrectionYCoordinate.Value=430# Select entry X0 and assign the first x coordinatecamera.BslStaticDefectPixelCorrectionXSelector.Value="X0"camera.BslStaticDefectPixelCorrectionXCoordinate.Value=120# Select entry X1 and assign the second x coordinate, which is in the same linecamera.BslStaticDefectPixelCorrectionXSelector.Value="X1"camera.BslStaticDefectPixelCorrectionXCoordinate.Value=182# Save changes to flash memorycamera.BslStaticDefectPixelCorrectionSave.Execute()
/* 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 *//* Disable defect pixel correction */errRes=PylonDeviceFeatureFromString(hdev,"DefectPixelCorrectionMode","Off");CHECK(errRes);