Esempio n. 1
0
        private CL.tagInstrumentCond instrumentCondition(String screenSize, short additional)
        {
            CL.tagInstrumentCond cond = default(CL.tagInstrumentCond);


            cond.exposureMode  = getExposureMode();
            cond.exposureIndex = getExposureIndex();

            //Normal lens
            cond.lensType = CL.LENS_NORMAL;


            cond.lensPosition = 4;
            //0.5m
            cond.measurementType = CL.SYNCMODE_OFF;
            //Synchronized measurements : Don't care
            cond.syncValue     = 5.0;
            cond.additional    = additional;
            cond.left          = 0;
            cond.top           = 0;
            cond.right         = IMAGESIZE - 1;
            cond.bottom        = IMAGESIZE - 1;
            cond.filterMeasure = CL.FILTER_MEASURE_OFF;
            //XYZ measurements
            cond.filterIndex = CL.FILTER_INDEX_Y;
            cond.smearIndex  = CL.SMEAR_NONE;
            cond.userCal     = CL.USERCAL_OFF;
            cond.rotate      = CL.ROTATION_NONE;
            return(cond);
        }
Esempio n. 2
0
        private void setInstrumentCondition(short additional)
        {
            //Set the measurement conditions
            log("Set instrument condition . . . ", 1);
            CL.tagInstrumentCond cond = instrumentCondition(this.screenSize.Text, additional);
            int ret = CL.CA2DSDK_SetInstrumentCondition(ref cond);

            if (ret < 0)
            {
                log("Set instrument condition", ret);
                return;
            }
            log("Set instrument condition completed", 1);
        }