> Hmm, odd. Can you provide more info? Debug output, for example. > > > Should I be able to assume that the default values are sane, or do I have > > to initialize the values myself? > > The default is the identity matrix which looks sane to me. > > Hope this helps,
The interesting parameters are the opt(24) -> opt(32) lines. I have not written those values. Where do the values come from and what should they be? if I set them (cct1-9) to "1, 0, 0, 0, 1, 0, 0, 0, 1" I get an OK picture. BTW today the image is quite fine even tho the paramete values are quite 'magic' :) I also noticed that changing the film type when scanning with the transparency unit changes these (cct) values. Thanks, K?re S?rs This is the debug info from my application: - The "setValue" lines is when I want to set a value. - The "write data" lines is when data is actually written to the backend (only 4 first bytes are shown). - The opt(x) line shows data read from the backend. --------------------- Sane Version = 1.0.18 name='epkowa:libusb:003:006' vendor='Epson' model='Stylus Photo RX500/RX510' type='flatbed scanner' opt( 2):' mode', Combo = 'Binary' opt( 5):' dropout', Combo = 'None' opt( 8):'gamma-correctio', Combo = 'User defined (Gamma=1.8)' opt(10):' resolution', Combo = '300 DPI' opt(11):' threshold', Slider V = 128 opt(14):' speed', checked = 0 opt(15):'auto-area-segme', checked = 0 opt(16):'short-resolutio', checked = 0 opt(18):'red-gamma-table', Unhandeled opt(19):'green-gamma-tab', Unhandeled opt(20):'blue-gamma-tabl', Unhandeled opt(21):'wait-for-button', checked = 0 opt(22):' monitor-button', checked = 0 opt(34):' preview', checked = 0 opt(35):' preview-speed', checked = 0 opt(37):' tl-x', Slider F V = 0.000000 opt(38):' tl-y', Slider F V = 0.000000 opt(39):' br-x', Slider F V = 215.899994 opt(40):' br-y', Slider F V = 297.179993 opt(41):' quick-format', Combo = 'Max' opt(43):' source', Combo = 'Flatbed' setValue(QString): 'mode' ->'Color' write data=0x436f6c6f opt_number= 2 status=0, res=6data=0x436f6c6f Reload Options opt( 2):' mode', Combo = 'Color' opt( 3):' depth', Combo = '8' opt( 8):'gamma-correctio', Combo = 'User defined (Gamma=1.8)' opt(10):' resolution', Combo = '300 DPI' opt(14):' speed', checked = 0 opt(16):'short-resolutio', checked = 0 opt(18):'red-gamma-table', Unhandeled opt(19):'green-gamma-tab', Unhandeled opt(20):'blue-gamma-tabl', Unhandeled opt(21):'wait-for-button', checked = 0 opt(22):' monitor-button', checked = 0 opt(24):' cct-1', Slider F V = 1.114990 opt(25):' cct-2', Slider F V = -0.067688 opt(26):' cct-3', Slider F V = -0.047287 opt(27):' cct-4', Slider F V = -0.117889 opt(28):' cct-5', Slider F V = 1.168091 opt(29):' cct-6', Slider F V = -0.050186 opt(30):' cct-7', Slider F V = 0.005188 opt(31):' cct-8', Slider F V = -0.485794 opt(32):' cct-9', Slider F V = 1.480591 opt(34):' preview', checked = 0 opt(35):' preview-speed', checked = 0 opt(37):' tl-x', Slider F V = 0.000000 opt(38):' tl-y', Slider F V = 0.000000 opt(39):' br-x', Slider F V = 215.899994 opt(40):' br-y', Slider F V = 297.179993 opt(41):' quick-format', Combo = 'Max' opt(43):' source', Combo = 'Flatbed' setValue(float): 'tl-x' value: 0.000000 setValue(float): 'tl-y' value: 0.000000 setValue(float): 'br-x' value: 215.899994 setValue(float): 'br-y' value: 297.179993 setValue(float): 'resolution' value: 100.000000 write data=0x64000000 opt_number=10 status=0, res=6data=0x64000000 Reload Options ... ... setValue(float): 'depth' value: 8.000000 write data=0x08000000 opt_number= 3 status=0, res=6data=0x08000000 Reload Options ... ... setValue(float): 'resolution' value: 600.000000 write data=0x58020000 opt_number=10 status=0, res=7data=0x2c010000 writeData: write was inexact. Reload value just in case... opt(10):' resolution', Combo = '300 DPI' Reload Options opt( 2):' mode', Combo = 'Color' opt( 3):' depth', Combo = '8' opt( 8):'gamma-correctio', Combo = 'User defined (Gamma=1.8)' opt(10):' resolution', Combo = '300 DPI' opt(14):' speed', checked = 0 opt(16):'short-resolutio', checked = 0 opt(18):'red-gamma-table', Unhandeled opt(19):'green-gamma-tab', Unhandeled opt(20):'blue-gamma-tabl', Unhandeled opt(21):'wait-for-button', checked = 0 opt(22):' monitor-button', checked = 0 opt(24):' cct-1', Slider F V = 1.114990 opt(25):' cct-2', Slider F V = -0.067688 opt(26):' cct-3', Slider F V = -0.047287 opt(27):' cct-4', Slider F V = -0.117889 opt(28):' cct-5', Slider F V = 1.168091 opt(29):' cct-6', Slider F V = -0.050186 opt(30):' cct-7', Slider F V = 0.005188 opt(31):' cct-8', Slider F V = -0.485794 opt(32):' cct-9', Slider F V = 1.480591 opt(34):' preview', checked = 0 opt(35):' preview-speed', checked = 0 opt(37):' tl-x', Slider F V = 0.000000 opt(38):' tl-y', Slider F V = 0.000000 opt(39):' br-x', Slider F V = 215.899994 opt(40):' br-y', Slider F V = 297.179993 opt(41):' quick-format', Combo = 'Max' opt(43):' source', Combo = 'Flatbed' opt(10):' resolution', Combo = '300 DPI'
