Beispiel #1
0
 public static extern int SetSamplingRate(int hACam, SAMPLING_RATE Value);
        public void LoadSetting()
        {
//現在の設定を取得
            int lHT;
            int lHS;
            int lHE;
            int lVT;
            int lVS;
            int lVE;

            m_CArtCam.GetCaptureWindowEx(out lHT, out lHS, out lHE, out lVT, out lVS, out lVE);

            DataController.SETDATA.MonitorColorMode = m_CArtCam.GetColorMode();
            DataController.SETDATA.cameraType       = m_CArtCam.GetCameraType();
            DataController.SETDATA.width            = m_CArtCam.Width();
            DataController.SETDATA.height           = m_CArtCam.Height();
            DataController.SETDATA.Fps        = m_CArtCam.Fps() / 10;//取得値の1/10(単位:x/second)
            DataController.SETDATA.dllVersion = m_CArtCam.GetDllVersion();

            byte byteData;
            int  longData;
            int  Reserve  = 0;
            bool isResult = m_CArtCam.GetIOPort(out byteData, out longData, Reserve);

            SUBSAMPLE subSample = m_CArtCam.GetSubSample();

            DataController.SETDATA.waitTime   = m_CArtCam.GetWaitTime();
            DataController.SETDATA.isMirrorV  = m_CArtCam.GetMirrorV();
            DataController.SETDATA.isMirrorH  = m_CArtCam.GetMirrorH();
            DataController.SETDATA.brightness = m_CArtCam.GetBrightness();
            DataController.SETDATA.contrast   = m_CArtCam.GetContrast();
            DataController.SETDATA.hue        = m_CArtCam.GetHue();
            DataController.SETDATA.saturation = m_CArtCam.GetSaturation();

            DataController.SETDATA.sharpness = m_CArtCam.GetSharpness();

            DataController.SETDATA.bayerGainRed   = m_CArtCam.GetBayerGainRed();
            DataController.SETDATA.bayerGainGreen = m_CArtCam.GetBayerGainGreen();
            DataController.SETDATA.bayerGainBlue  = m_CArtCam.GetBayerGainBlue();

            int auto = m_CArtCam.GetBayerGainAuto();

            if (auto == 0)
            {
                DataController.SETDATA.auto = true;
            }
            else
            {
                DataController.SETDATA.auto = false;
            }

            DataController.SETDATA.gamma = m_CArtCam.GetGamma();

            DataController.SETDATA.globalGain    = m_CArtCam.GetGlobalGain();
            DataController.SETDATA.gainRed       = m_CArtCam.GetColorGainRed();
            DataController.SETDATA.gainGreen1    = m_CArtCam.GetColorGainGreen1();
            DataController.SETDATA.gainGreen2    = m_CArtCam.GetColorGainGreen2();
            DataController.SETDATA.colorGainBlue = m_CArtCam.GetColorGainBlue();
            DataController.SETDATA.exposureTime  = m_CArtCam.GetExposureTime();
            DataController.SETDATA.halfClock     = m_CArtCam.GetHalfClock();

            AI_TYPE       aiType     = m_CArtCam.GetAutoIris();
            SAMPLING_RATE sampleRate = m_CArtCam.GetSamplingRate();
            VIDEOFORMAT   videoInfo  = m_CArtCam.GetVideoFormat();

            int writeAddress = 0;
            int Value        = 0;
            int writeSromID  = m_CArtCam.WriteSromID(writeAddress, Value);

            int readAddress = 0;
            int readSlomID  = m_CArtCam.ReadSromID(readAddress);

            DataController.SETDATA.cameraInfo   = m_CArtCam.GetCameraInfo(ref Info);
            DataController.SETDATA.cameraStatus = m_CArtCam.GetStatus();

            int writeRegister = m_CArtCam.WriteRegister(writeAddress, Value);

            int readRegister   = m_CArtCam.ReadRegister(readAddress);
            int grayMode       = m_CArtCam.GetGrayMode();
            int grayGrayGainR  = m_CArtCam.GetGrayGainR();
            int grayGrayGainG1 = m_CArtCam.GetGrayGainG1();
            int grayGrayGainG2 = m_CArtCam.GetGrayGainG2();
            int grayGrayGainB  = m_CArtCam.GetGrayGainB();
        }
Beispiel #3
0
 // 1275
 public int SetSamplingRate(SAMPLING_RATE Value)
 {
     return ArtCam.SetSamplingRate(m_hACam, Value);
 }