2012-09-03 1 views
1

모든 아이디어 Image 유형을 Image<Bgr, Byte> 유형으로 변환 하시겠습니까?이미지 형식을 이미지 <Bgr, Byte>으로 변환하는 방법?

이미지를 PictureBox에서 가져오고이 이미지를 Image<Bgr, Byte> 유형으로 변환해야합니다.

Image pictureBoxImage = pictureBox.Image; 
Image<Bgr, Byte> image = // ... 
+4

"Imgae", "Bgr"및 "Imgae < Bgr,Byte >"이란 무엇입니까? –

+0

설명서를 읽으시겠습니까? http://www.emgu.com/wiki/index.php/Working_with_Images – Liam

답변

3

documentation 따르면

그래서 닷넷 Bitmap 객체에서 Image<TColor, TDepth>을 만들 수도 있습니다 비트 맵

에서

을 이미지 만들기, 너는 할 수 있어야한다 :

var image = new Image<Bgr, Byte>(new Bitmap(pictureBox.Image));