Exemplo n.º 1
0
        public bool GetSFRValue(Bitmap bmp, ref SFRValue SFRValue, ref RectInfo rectInfo, Rectangle[] rectangles, ref LightValue lightValue, bool TestLight = false)
        {
            if (!bLoad)
            {
                return(false);
            }
            AlgorithmBase tempModuleBase = GetAlgByIndexID();

            if (tempModuleBase != null)
            {
                bool result = tempModuleBase.GetSFRValue(bmp, ref SFRValue, ref rectInfo, rectangles, ref lightValue, TestLight);
                if (SFRValue != null)
                {
                    for (int i = 0; i < SFRValue.block.Length; i++)
                    {
                        if (SFRValue.block[i].dValue > ParamSetMgr.GetInstance().GetDoubleParam("SFR最大值"))
                        {
                            SFRValue.block[i].dValue = -1;
                        }
                    }
                }

                return(result);
            }
            else
            {
                return(false);
            }
        }