kopia lustrzana https://gitlab.com/sane-project/website
				
				
				
			
		
			
				
	
	
		
			175 wiersze
		
	
	
		
			6.2 KiB
		
	
	
	
		
			HTML
		
	
	
			
		
		
	
	
			175 wiersze
		
	
	
		
			6.2 KiB
		
	
	
	
		
			HTML
		
	
	
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
 | ||
|                       "http://www.w3.org/TR/REC-html40/loose.dtd">
 | ||
| <HTML>
 | ||
| <HEAD>
 | ||
| <TITLE>sane-devel: 3091 backend: Brightness, Contrast etc.</TITLE>
 | ||
| <META NAME="Author" CONTENT="Frederik Ramm (frederik@remote.org)">
 | ||
| <META NAME="Subject" CONTENT="3091 backend: Brightness, Contrast etc.">
 | ||
| </HEAD>
 | ||
| <BODY BGCOLOR="#FFFFFF" TEXT="#000000">
 | ||
| <H1>3091 backend: Brightness, Contrast etc.</H1>
 | ||
| <!-- received="Wed Mar  7 13:09:33 2001" -->
 | ||
| <!-- isoreceived="20010307210933" -->
 | ||
| <!-- sent="Wed, 7 Mar 2001 21:18:05 +0000" -->
 | ||
| <!-- isosent="20010307211805" -->
 | ||
| <!-- name="Frederik Ramm" -->
 | ||
| <!-- email="frederik@remote.org" -->
 | ||
| <!-- subject="3091 backend: Brightness, Contrast etc." -->
 | ||
| <!-- id="20010307211805.A20763@aruba.remote.org" -->
 | ||
| <STRONG>From:</STRONG> Frederik Ramm (<A HREF="mailto:frederik@remote.org?Subject=Re:%203091%20backend:%20Brightness,%20Contrast%20etc.&In-Reply-To=<20010307211805.A20763@aruba.remote.org>"><EM>frederik@remote.org</EM></A>)<BR>
 | ||
| <STRONG>Date:</STRONG> Wed Mar 07 2001 - 13:18:05 PST
 | ||
| <P>
 | ||
| <!-- next="start" -->
 | ||
| <LI><STRONG>Next message:</STRONG> <A HREF="0108.html">Gabriele Conrad: "Acer 300F"</A>
 | ||
| <UL>
 | ||
| <LI><STRONG>Previous message:</STRONG> <A HREF="0106.html">Fedor Karpelevitch: "HP ScanJet 3300Cse"</A>
 | ||
| <!-- nextthread="start" -->
 | ||
| <LI><STRONG>Next in thread:</STRONG> <A HREF="0112.html">Ulrich Deiters: "Re: 3091 backend: Brightness, Contrast etc."</A>
 | ||
| <LI><STRONG>Reply:</STRONG> <A HREF="0112.html">Ulrich Deiters: "Re: 3091 backend: Brightness, Contrast etc."</A>
 | ||
| <LI><STRONG>Reply:</STRONG> <A HREF="0113.html">Marian Eichholz: "Re: 3091 backend: Brightness, Contrast etc."</A>
 | ||
| <LI><STRONG>Reply:</STRONG> <A HREF="0116.html">Ulrich Deiters: "Re: 3091 backend: Brightness, Contrast etc."</A>
 | ||
| <!-- reply="end" -->
 | ||
| <LI><STRONG>Messages sorted by:</STRONG> 
 | ||
| <A HREF="date.html#107">[ date ]</A>
 | ||
| <A HREF="index.html#107">[ thread ]</A>
 | ||
| <A HREF="subject.html#107">[ subject ]</A>
 | ||
| <A HREF="author.html#107">[ author ]</A>
 | ||
| </UL>
 | ||
| <HR NOSHADE><P>
 | ||
| <!-- body="start" -->
 | ||
| <P>
 | ||
| Hi,
 | ||
| <BR>
 | ||
| <P>   the scanner I'm writing a backend for does not support the setting
 | ||
| <BR>
 | ||
| of the usual image-altering values like contrast, brightness, gamme
 | ||
| <BR>
 | ||
| correction etc.
 | ||
| <BR>
 | ||
| <P>Instead, you can load a so-called "LUT" translation table into the
 | ||
| <BR>
 | ||
| scanner. It's basically a mapping that assigns an output value to
 | ||
| <BR>
 | ||
| every possible input value. I.e. if I wanted a much brighter image, I
 | ||
| <BR>
 | ||
| would just download a table that maps
 | ||
| <BR>
 | ||
| <P>0 -> 50
 | ||
| <BR>
 | ||
| 1 -> 51 
 | ||
| <BR>
 | ||
| ...
 | ||
| <BR>
 | ||
| 204 -> 255
 | ||
| <BR>
 | ||
| 205 -> 255
 | ||
| <BR>
 | ||
| 206 -> 255
 | ||
| <BR>
 | ||
| ...
 | ||
| <BR>
 | ||
| 255 -> 255
 | ||
| <BR>
 | ||
| <P>or something similar. Since I don't have more than 8 bits on the input
 | ||
| <BR>
 | ||
| side, I cannot have the scanner do any translations that could not
 | ||
| <BR>
 | ||
| also be done afterwards (in fact, I could do in within the backend if
 | ||
| <BR>
 | ||
| I wanted to). 
 | ||
| <BR>
 | ||
| <P>So, should I bother to "emulate" a brightness/contrast/gamma setting
 | ||
| <BR>
 | ||
| using these LUT tables? And if I should, can anyone point me to useful
 | ||
| <BR>
 | ||
| formulas that generate such translation tables for certain values of
 | ||
| <BR>
 | ||
| contrast, brightness etc.?
 | ||
| <BR>
 | ||
| <P><P>What's more, my scanner supports a few settings with funny names I
 | ||
| <BR>
 | ||
| cannot make sense of. Maybe somebody knows what they are, or what they
 | ||
| <BR>
 | ||
| might be. It would be interesting for me if it is worthwile to make
 | ||
| <BR>
 | ||
| them available through the backend.
 | ||
| <BR>
 | ||
| <P>* Initial Slice: Specifies the initial binary threshold value when in 
 | ||
| <BR>
 | ||
|   floating slice mode.
 | ||
| <BR>
 | ||
| * Up value: Specifies the +UP count value used in floating slice mode. 
 | ||
| <BR>
 | ||
|   (Valid settings: 0-3, default: 1)
 | ||
| <BR>
 | ||
| * Down value: ... as above
 | ||
| <BR>
 | ||
| * Lower Limit Slice: Specifies the lower limit slice used in floating
 | ||
| <BR>
 | ||
|   slice mode (0-15, default: 6)
 | ||
| <BR>
 | ||
| * Compensation line Interval: Specifies the compensation line interval
 | ||
| <BR>
 | ||
|   slice when in floating slice mode (0-15, default 0)
 | ||
| <BR>
 | ||
| * Error dispersion upper limit slice (0-255, default 230)
 | ||
| <BR>
 | ||
| * Error dispersion lower limit slice (0-255, default 20)
 | ||
| <BR>
 | ||
| * Laplacian coefficient for enhancement mode: 0 (weak), 1, 2 or 3 
 | ||
| <BR>
 | ||
|   (strong)
 | ||
| <BR>
 | ||
| * Gradient coefficient for enhancement mode: as above
 | ||
| <BR>
 | ||
| * Laplacian slice: Specifies which Laplacian slice is to be used for the
 | ||
| <BR>
 | ||
|   enhancement mode (0-15)
 | ||
| <BR>
 | ||
| * Gradient slice: as above for Gradient slice
 | ||
| <BR>
 | ||
| * Primary Scan Ratio Compensation: on or off.
 | ||
| <BR>
 | ||
| <P>If anyone has the slightest idea... 
 | ||
| <BR>
 | ||
| <P>Thanks
 | ||
| <BR>
 | ||
| Frederik
 | ||
| <BR>
 | ||
| <P><PRE>
 | ||
| -- 
 | ||
| Frederik Ramm  ##  eMail <A HREF="mailto:frederik@remote.org?Subject=Re:%203091%20backend:%20Brightness,%20Contrast%20etc.&In-Reply-To=<20010307211805.A20763@aruba.remote.org>">frederik@remote.org</A>  ##  N57<35>48.10' W005<30>40.32'
 | ||
| <P><P>--
 | ||
| Source code, list archive, and docs: <A HREF="http://www.mostang.com/sane/">http://www.mostang.com/sane/</A>
 | ||
| To unsubscribe: echo unsubscribe sane-devel | mail <A HREF="mailto:majordomo@mostang.com?Subject=Re:%203091%20backend:%20Brightness,%20Contrast%20etc.&In-Reply-To=<20010307211805.A20763@aruba.remote.org>">majordomo@mostang.com</A>
 | ||
| </PRE>
 | ||
| <P><!-- body="end" -->
 | ||
| <HR NOSHADE>
 | ||
| <UL>
 | ||
| <!-- next="start" -->
 | ||
| <LI><STRONG>Next message:</STRONG> <A HREF="0108.html">Gabriele Conrad: "Acer 300F"</A>
 | ||
| <LI><STRONG>Previous message:</STRONG> <A HREF="0106.html">Fedor Karpelevitch: "HP ScanJet 3300Cse"</A>
 | ||
| <!-- nextthread="start" -->
 | ||
| <LI><STRONG>Next in thread:</STRONG> <A HREF="0112.html">Ulrich Deiters: "Re: 3091 backend: Brightness, Contrast etc."</A>
 | ||
| <LI><STRONG>Reply:</STRONG> <A HREF="0112.html">Ulrich Deiters: "Re: 3091 backend: Brightness, Contrast etc."</A>
 | ||
| <LI><STRONG>Reply:</STRONG> <A HREF="0113.html">Marian Eichholz: "Re: 3091 backend: Brightness, Contrast etc."</A>
 | ||
| <LI><STRONG>Reply:</STRONG> <A HREF="0116.html">Ulrich Deiters: "Re: 3091 backend: Brightness, Contrast etc."</A>
 | ||
| <!-- reply="end" -->
 | ||
| <LI><STRONG>Messages sorted by:</STRONG> 
 | ||
| <A HREF="date.html#107">[ date ]</A>
 | ||
| <A HREF="index.html#107">[ thread ]</A>
 | ||
| <A HREF="subject.html#107">[ subject ]</A>
 | ||
| <A HREF="author.html#107">[ author ]</A>
 | ||
| </UL>
 | ||
| <!-- trailer="footer" -->
 | ||
| <HR NOSHADE>
 | ||
| <P>
 | ||
| <SMALL>
 | ||
| <EM>
 | ||
| This archive was generated by <A HREF="http://www.hypermail.org/">hypermail 2b29</A> 
 | ||
| : <EM>Wed Mar 07 2001 - 13:11:21 PST</EM>
 | ||
| </EM>
 | ||
| </SMALL>
 | ||
| </BODY>
 | ||
| </HTML>
 |