Bootstrap

AEC10 SA计算整理 --- Depth & Tracker

DepthSA

DepthSALuma=NormalizedWeightedSum(DepthLuma,FrameLumaBE16x16)
DepthSATarget=[setparam/tr:lux+lux]
DepthSADistanceStorage=(TriggerCtrlDistance>0.0)?TriggerCtrlDistance:DepthSADistanceStorage
DepthSALumaWeight=[setparam/tr:lux+DepthSADistanceStorage]
DepthSAFrameWeight=1.0-DepthSALumaWeight
DepthSADepthLumaScale=DepthSALuma1000000/TriggerCtrlSafeExp
DepthSADepthLumaStorage=(TriggerCtrlDistance>0)?DeptjSADepthLumaScale:DepthSADepthLumaStorage
DepthSADepthLumaSelection=DepthSADepthLumaStorage
TriggerCtrlSafeExp/1000000
DepthSAAdjRatioDepth=DepthSATarget/DepthSADepthLumaSelection
DepthSAAdjRatioHigh=[setparam/tr:lux+lux]/DepthHighPCTLLuma
DepthSAAdjRatioLow=[setparam/tr:lux+lux]/DepthLowPCTLLuma
DepthSAAdjRatioMin=Max(DepthSAAdjRatioDepth0.5,Min(DepthSAAdjRatioDepth,[settparam/tr:lux+DepthSAAdjRatioHigh]))
DepthSAAdjRatioMin=Min(DepthSAAdjRatioDepth
1.4,Max(DepthSAAdjRatioDepth,[settparam/tr:lux+DepthSAAdjRatioLow]))
DepthSAAdjRatioSel=DepthSAAdjRatioMin*[setparam/tr:lux+DepthSAAdjRatioDepth]+DepthSAAdjRatioMax*[setparam/tr:lux+DepthSAAdjRatioDepth]
DepthSAAdjRatioFSATgt=DepthSAAdjRatioSel*FrameSALuma/FrameSATarget
DepthSAAdjRatio=[setparam/tr:lux+DepthSAAdjRatioFSATgt]*FrameSATarget/FrameSALuma

TrackerSA

TrackerSALuma=TrackerSALumaSelection
TrackerSATarget=[setparam/tr:lux+lux]
TrackerSALumaScale=TrickerROILuma1000000/TriggerCtrlSafeExp
TrackerSALumaStorage=(TrackerROI==0)?0:TrackerSALumaStorage
TrackerSALumaStorage=(TrackerROI>0)?TrackerSALumaStorage:TrackerSALumaStorage
TrackerSALumaSelection=TrackerSALumaStorage
TriggerCtrlSafeExp/1000000
TrackerSAWeightSelection=(TrackerROI==0)?0:TrackerSAWeightSelection
AdjRatioTracker=TrackerSATarget/TrackerSALuma
AdjRatioHighTracker[setparam/tr:lux+lux]/TrackerHighPCTLLuma
AdjRatioLowTracker=[setparam/tr:lux+lux]/TrackerLowPCTLLuma
CappedAdjRatioMinTracker=Min(AdjRatioTracker,[setparam/tr:lux+AdjRatioHighTracker])
CappedAdjRatioMinTracker=Max(AdjRatioTracker*[setparam/tr:lux+lux],CappedAdjRatioMinTracker)
CappedAdjRatioMaxTracker=Max(AdjRatioTracker,[setparam/tr:lux+AdjRatioLowTracker])
CappedAdjRatioMaxTracker=Min(AdjRatioTracker*[setparam/tr:lux+lux],CappedAdjRatioMaxTracker)
AdjRatioSelectionTracker=CappedAdjRatioMinTracker*[setparam/tr:lux+AdjRatioTracker]+CappedAdjRatioMaxTracker*[setparam/tr:lux+AdjRatioTracker]
AdjRatioFSATgtTracker=AdjRatioSelectionTracker*FrameSALum/FrameSATarget
AdjRatioTracker=[setparam/tr:lux+AdjRatioFSATgtTracker]*FrameSATarget/FrameSALuma

;