Hi,
I am using libargus c++ API. In Jetpack 4.6.2, I can set the AE region and AWB region in this way:
/**
* Use content region to sperate image into 5 region
* @note the regions must be pushed in the following orders
* ---------------------------------------
* | Upper region |
* |_____________________________________|
* | | | |
* | Left | | Right |
* | Region| Content region | Region|
* | | | |
* |_______|_____________________|_______|
* | Lower region |
* |_____________________________________|
*/
vector<AcRegion> regions;
int width = param.resolution[0];
int height = param.resolution[1];
// upper region
regions.push_back(AcRegion(0, 0, width, param.contentRegion.top(), 0));
// left region
regions.push_back(AcRegion(
0, param.contentRegion.top(), param.contentRegion.left(),
param.contentRegion.bottom(), 0));
// content region
regions.push_back(AcRegion(
param.contentRegion.left(), param.contentRegion.top(),
param.contentRegion.right(), param.contentRegion.bottom(), 1));
// right region
regions.push_back(AcRegion(
param.contentRegion.right(), param.contentRegion.top(), width,
param.contentRegion.bottom(), 0));
// lower region
regions.push_back(AcRegion(0, param.contentRegion.bottom(), width, height, 0));
autoControlSettings->setAeRegions(regions);
autoControlSettings->setAwbRegions(regions);
However when I shift to Jetpack 4.6.4, I got the output from argus:
CurrentRegion 0 = {0 0 4032 279} has weight = 0.000000. Overriden to 1.
CurrentRegion 1 = {0 279 775 2761} has weight = 0.000000. Overriden to 1.
CurrentRegion 3 = {3257 279 4032 2761} has weight = 0.000000. Overriden to 1.
CurrentRegion 4 = {0 2761 4032 3040} has weight = 0.000000. Overriden to 1.
CurrentRegion 0 = {0 0 4032 279} has weight = 0.000000. Overriden to 1.
CurrentRegion 1 = {0 279 775 2761} has weight = 0.000000. Overriden to 1.
CurrentRegion 3 = {3257 279 4032 2761} has weight = 0.000000. Overriden to 1.
CurrentRegion 4 = {0 2761 4032 3040} has weight = 0.000000. Overriden to 1.
CurrentRegion 0 = {0 0 4032 279} has weight = 0.000000. Overriden to 1.
CurrentRegion 1 = {0 279 775 2761} has weight = 0.000000. Overriden to 1.
CurrentRegion 3 = {3257 279 4032 2761} has weight = 0.000000. Overriden to 1.
CurrentRegion 4 = {0 2761 4032 3040} has weight = 0.000000. Overriden to 1.
CurrentRegion 0 = {0 0 4032 279} has weight = 0.000000. Overriden to 1.
CurrentRegion 1 = {0 279 775 2761} has weight = 0.000000. Overriden to 1.
CurrentRegion 3 = {3257 279 4032 2761} has weight = 0.000000. Overriden to 1.
CurrentRegion 4 = {0 2761 4032 3040} has weight = 0.000000. Overriden to 1.
And the ae region is not work.
I hope to consider the center area of image in AE, how can I correctly set the region and the weight?
Thank you.