Bootstrap

AEC10 SA计算整理 --- flash部分

整理了AE计算的一些参数和计算公式,方便查找。

PreflashSafeAggSA

PreflashSafeSALuma= FrameLumaBE16x16
PreflashSafeSATarget= [set param/tr: lux]50.0
PreflashSafeSAAdjRatioNoScale= PreflashSafeSATarget / PreflashSafeSALuma
PreflashSafeSAAdjRatioCapNoScale= Min(1.0, PreflashSafeSAAdjRatioNoScale)
PreflashSafeSAAdjRatioCapScale= Min(1.0, PreflashSafeSAAdjRatioNoScale*[setparam/tr:lux+TriggerCtrlSatRatio])
PreflashSafeSAAdjRatio= [set param/tr:lux+FrameLumaBE16x16]*PreflashSafeSAAdjRatioCapNoScale + [setparam/tr:lux+FrameLumaBE16x16] * PreflashSafeSAAdjRatioCapScale)

PreflashShortAggSA:

PreflashShortSAAdjRatio= PreflashSafeSAAdjRatio

PreflashLongAggSA:

PreflashLongSAAdjRatio= PreflashSafeSAAdjRatio

FlashSimpleSA:

FlashSimpleSALuma= FlashFrameSAFlashHighAvg
FlashSimpleSATarget= [set param/tr:lux+TriggerCtrlFullflashLuxIndex]
FlashFrameSAFlashHighAvg= FlashHighLuma(FlashSnapshotFlashOffAvg, FlashSnapshotFlalshLowAvg,TriggerFlashFlux, TriggerFlashExpIncrease)
FlashSimpleSAInfluence= FlashFrameSAFlashHighAvg / FlashSnapshotFlashOffAvg

FlashFrameSA

FlashFrameSALuma= FlashFrameSAFlashHighLuma
FlashFrameSATarget= [set param/tr:lux+TriggerCtrlFullflashLuxIndex]
FlashFrameSAFlashHighAvg= FlashHighLuma(FlashSnapshotFlashOffAvg,FlashSnapshotFlashLowAvg,TriggerFlashFlux,TriggerFlashExpIncrease)
FlashFrameSAFlashHighLuma= FlashHighLuma(FlashSnapshotFlashOffLuma, FlashSnapshotFlashLowLuma,TriggerFlashFlux, TriggerFlashExpIncrease)
FlashFrameSAInfluence= FlashFrameSAFlashHighLuma / FlashSnapshotFlashOffLuma
FlashFrameSAAdjRatio= FlashFrameSATarget / FlashFrameSALuma

FlashFrameAggSA:

FlashSmartConfidence= [set param/tr:lux+FlashHighLumaSatGridRatio]
FlashFrameSALuma=LinearInterpolation(FlashFrameSALuma,FlashSimpleSALuma,FlashSmartConfidence,FlashSmartConfidence)
FlashFrameSATarget=LinearInterpolation(FlashFrameSATarget,FlashSimpleSATarget,FlashSmartConfidence)
FlashFrameSAInfluence=LinearInterpolation(FlashFrameSAInfluence,FlashSimpleSAInfluence,FlashSmartConfidence)
FlashFrameSAAdjRatio=FlashFrameSATarget/FlashFrameSALuma

FlashFaceLumaCalSA:

FlashFaceLumaCalSAFlashOffFaceLuma= FlashSnapshotFlashOffDominantFaceLuma
FlashFacelumaCalSAFlashLowFaceLuma= FlashSnapshotFlashLowDominantFaceLuma

FlashFaceSA:

FlashFaceSALuma= FlashFaceSAFlashHighFaceLuma
FlashFaceSATarget= [set param/tr:lux+TriggerCtrlFullflashLuxIndex
FlashFaceSAFlashHighFaceLuma=FlashHighLuma(FlashFaceLumaCalSAFlashOffFaceLuma,FlashFaceLumaCalSAFlashLowFaceLuma,TriggerFlashFlux,TriggerFlashExpIncrease)
FlashFaceSAInfluence=FlashFaceSAFlashHighFaceLuma/FlashFaceLumaCalSAFlashOffFaceLuma
FlashFaceSAAdjRatio=FlashFaceSATarget/FlashFaceSALuma
FlashFaceSAAdjRatio=LinearInterpolation(FlashFaceSAAdjRatio,FlashFrameSAAdjRatio,[setparam/tr:lux+FlashDominantFaceROI],[set param/tr:lux+FlashDominantFaceROI])

FlashTouchLumaCalSA:

FlashTouchLumaCalSAFlashOffTouchLuma=FlashSnapshotFlashOffTouchLuma
FlashTouchLumaCalSAFlashLowTouchLuma=FlashSnapshotFlashLowTouchLuma

FlashTouchSA:

FlashTouchSALuma=FlashTouchSAFlashHighTouchLuma
FlashTouchSATarget=[setparam/tr:lux+TriggerCtrlFullflashLuxIndex]
FlashTouchSAFlashHighTouchLuma=FlashHighLuma(FlashTouchLumaCalSAFlashOffTouchLuma,FlashTouchLumaCalSAFlashLowTouchLuma,TriggerFlashFlux,TriggerFlashExpIncrease)
FlashTouchSAInfluence=FlashTouchSAFlashHighTouchLuma/FlashSnapshotFlashOffTouchLuma
FlashTouchSAAdjRatio=FlashTouchSATarget/FlashTouchSALuma
FlashTouchSAAdjRatio=LinearInterpolation(FlashTouchSAAdjRatio,FlashFrameSAAdjratio,[setparam/tr:lux+TouchROI],[set param/tr:lux+TouchROI])

FlashShortAggSA:

TriggerFlashInfluence=(FlashFaceSAConfidence<2.0)?FlashFrameSAInfluence:FlashFaceSAInfluence
TriggerFlashInfluence=(FlashTouchSAConfidence<2.0)?TriggerFlashInfluence:FLashTouchSAInfluence
FlashShortAggSAInfluRatio=[setparam/tr:lux+TriggerFlashInfluence]
FlashShortAggTarget=(FlashFaceSAConfidence<2.0)?FlashFrameSAAdjRatio:FlashFaceSAAdjRatio
FlashShortAggSAAdjRatio=LinearInterpolation(FlashShortAggSATarget,1.0,FlashShortAggSAInfluRatio,FlashShortAggSAInfluRatio)

FlashSafeAggSA:

FlashSafeAggSAFlashOffGain=TriggerCtrlSafeExp/TriggerCtrlShortExp
FlashSafeAggSAGain=LinearInterpolation(1.0,FlashSafeAggSAFlashOffGain,FlashShortAggSAInfluRatio,FlashShortAggInfluenceRatio)
FlashSafeAggAdjRatio=FlashSafeAggSAGain*FlashShortAggSAAdjRatio

FlashLongAggSA:

FlashLongAggSAAdjRatio=FlashSafeAggSAAdjRatio

PrecisionFlashSA

PrecisionSAHightFGLuma=FlashHighLuma(FlashOffForegroundLuma,FlashLowForegroundLuma,TriggerFlashFlux,TriggerFlashExpIncrease)

;