[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SMD 1M30P-forcing 12 bits




Hello Mike!

On Wed, 24 Jan 2001, Dr. Michael Albert wrote:

> Dear Friends:
> 
> Again, thanks for all the help so far.  I'm starting to understand
> how this stuff works.
> 
> I am using a SMD 1M30P camera, an IC-PCI/AM-DIG card, the configuration
> file Mr. Stein kindly sent me, and version 0.7.1 of the driver.  The
> configuration file contains the line:
> 
>                           Pixel_Size_12
> 
> which is parsed correctly as when I run test_itifg I get:
> 
>          psize  : Input pixel size 12 bit (16 LUT pages)
> 
> but then further down I get :
> 
>            Image size: 1048576
> 
> (this value represents the GIOC_GE_GET_RAWSIZE in Setup_Bufs)
> and when I write files to disk using the '-i' option, the resulting 
> files are indeed 8 bit files.  Am I missing some other parameter I should
> set?

Without specifying the image depth at the command line (-d 12) the
test_itifg programm falls back to 8 bit. What happens is, that it calls
ioctl DG_SET_NORMTO8, which reprogramms the on board LUT's to forget the
lower four bits. With the -d 12 option, the LUT's aren't touched and you
should get 12(16)bit images.

						matthias

> Thank you.
> 
> Sincerely,
>   Mike
> 
-------------------------------------------------------------------------------
GOM mbH                                                 Tel.: ++49 531/3804-330
Gesellschaft fuer optische Messtechnik                  Fax.: ++49 531/3804-333
Rebenring 33                                            Mail: M.Stein@gom.com
38106 Braunschweig GERMANY                              http://www.gom.com
-------------------------------------------------------------------------------