Ejemplo n.º 1
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);

            try
            {
                List <RenderedImage.ImageType> lstType = new List <RenderedImage.ImageType>();
                lstType.Add(RenderedImage.ImageType.BlendedMSXRGBA8888Image);
                //lstType.Add(RenderedImage.ImageType.ThermalLinearFlux14BitImage);
                //lstType.Add(RenderedImage.ImageType.ThermalRGBA8888Image);
                //lstType.Add(RenderedImage.ImageType.ThermalRadiometricKelvinImage);
                //lstType.Add(RenderedImage.ImageType.VisibleAlignedRGBA8888Image);
                //lstType.Add(RenderedImage.ImageType.VisibleUnalignedYUV888Image);
                //lstType.Add(RenderedImage.ImageType.VisualJPEGImage);
                //lstType.Add(RenderedImage.ImageType.VisualYCbCr888Image);

                frameProcessor = new FrameProcessor(this, this, lstType);

                //아래꺼는 Simulated 테스트에서만 사용, 장비 연결할 경우는 주석 처리
                flirDevice = new SimulatedDevice(this, this, Resources.OpenRawResource(Resource.Raw.sampleframes), 10);
            }
            catch (Exception e)
            {
                System.Console.WriteLine(e.Message);
            }
        }
Ejemplo n.º 2
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.activity_main);

            List <RenderedImage.ImageType> lstType = new List <RenderedImage.ImageType>();

            lstType.Add(RenderedImage.ImageType.BlendedMSXRGBA8888Image);
            //lstType.Add(RenderedImage.ImageType.ThermalLinearFlux14BitImage);
            //lstType.Add(RenderedImage.ImageType.ThermalRGBA8888Image);
            //lstType.Add(RenderedImage.ImageType.ThermalRadiometricKelvinImage);
            //lstType.Add(RenderedImage.ImageType.VisibleAlignedRGBA8888Image);
            //lstType.Add(RenderedImage.ImageType.VisibleUnalignedYUV888Image);
            //lstType.Add(RenderedImage.ImageType.VisualJPEGImage);
            //lstType.Add(RenderedImage.ImageType.VisualYCbCr888Image);

            frameProcessor = new FrameProcessor(this, this, lstType);
        }