Re: [libdc1394-devel] De-bayering question
Capture and control API for IIDC compliant cameras
Brought to you by:
ddouxchamps,
gordp
From: Mark M. <mar...@po...> - 2007-04-25 02:58:41
|
Have you tried it with mono8 instead of raw8? Some cameras output raw as mono8. Mark On 24.04.2007, at 22:29, chris French wrote: > Hi Guys, > > I'm trying to decode the RAW output from a Point Grey Flea 2. I can > successfully use RGB8 and YUV422 but I'm getting rubbish with RAW8. > > With YUV422 to RGB I call > > err = dc1394_convert_to_RGB8 (frame->image, pdes->YUVBuffer,width, > height,DC1394_BYTE_ORDER_UYVY, DC1394_COLOR_CODING_YUV422,0); > > with RAW8 I call > > err = dc1394_bayer_decoding_8bit(frame->image, pdes->YUVBuffer,width, > height,*pdes->cameraRAWFilter, DC1394_BAYER_METHOD_NEAREST); > > I'm assuming that the destination buffers in both cases will be the > same RGBRGBRGBRGB format - is this correct? I make the buffer size > width * height * 3. > > The only difference is that the YUV422 mode is 1024 * 768 where the > format 7 mode 0 RAW8 is the sensor resolution 1032*776. > > Has anyone else tried this - the output buffer doesn't seem to be > filled with anything like the correct data and I think I'm also seeing > a width issue because there are diagonal lines across the output > image. > > Thanks, > > Chris > > ---------------------------------------------------------------------- > --- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Mailing list for libdc1394-devel > lib...@li... > https://lists.sourceforge.net/lists/listinfo/libdc1394-devel |