sane-project-website/old-archive/1998-02/0107.html

149 wiersze
5.1 KiB
HTML

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

<!-- received="Wed Feb 18 16:44:55 1998 PST" -->
<!-- sent="Thu, 19 Feb 1998 01:41:42 +0100" -->
<!-- name="Nicolas Lucas de Peslouan" -->
<!-- email="nlp@usa.net" -->
<!-- subject="Umax Astra 6x0S - CCD distance - Do they *really* do this that way ?" -->
<!-- id="" -->
<!-- inreplyto="" -->
<title>sane-devel: Umax Astra 6x0S - CCD distance - Do they *really* do this that way ?</title>
<h1>Umax Astra 6x0S - CCD distance - Do they *really* do this that way ?</h1>
<b>Nicolas Lucas de Peslouan</b> (<a href="mailto:nlp@usa.net"><i>nlp@usa.net</i></a>)<br>
<i>Thu, 19 Feb 1998 01:41:42 +0100</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <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>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0108.html">Ralph Angenendt: "Re: HELP: RedHat 5.0 and AHA1502AE SCSI adapter for Microtek E6 scanner setup"</a>
<li> <b>Previous message:</b> <a href="0106.html">Peter JD Hall: "Re: HELP: RedHat 5.0 and AHA1502AE SCSI adapter for Microtek E6 scanner setup"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
This is a multi-part message in MIME format.<br>
--------------6F43E614EDEAF6DFFF405F5C<br>
Content-Type: text/plain; charset=us-ascii<br>
Content-Transfer-Encoding: 7bit<br>
<p>
Hi Oliver, Hi Umax users,<br>
<p>
In order to support more resolutions for Umax Astra 6x0S, I changed one<br>
line from umax-scsi.c, this way :<br>
<p>
us-&gt;CCD_distance = us-&gt;inquiry_CCD_line_distance;<br>
<p>
become<br>
<p>
us-&gt;CCD_distance = us-&gt;y_resolution / 37.5 +.5;<br>
<p>
This way, you get correct images at 4 different resolutions (75, 150,<br>
225 and 300 dpi). <br>
<p>
After this change, all images (except the 4 resolutions above) need to<br>
be ccd-corrected, but with a float ccd value, -1 &lt; ccd &lt; 1<br>
<p>
The only way I find to ccd-correct those images is to add part of the<br>
current line value for a given channel with part of the above line value<br>
for the same channel and to use this value.<br>
<p>
For example, with a float ccd of .12, I take 88% (100-12) of the current<br>
line + 12% of the above line for blue channel and 76% (100-12*2) of the<br>
current line + 24% (12*2) of the above line for the green channel. If<br>
float ccd is &lt;0, I swap the % values. [This is for Astra 610S, for 600S,<br>
replace green with red].<br>
<p>
can't find another way to do this.<br>
<p>
Do they *really* do this that way ?<br>
<p>
Nicolas.<br>
<p>
Attached: ccd.html, a Javascript program to display the line ccd, the<br>
float ccd and the % value for all resolutions from 1 to 300. [This is<br>
for Astra 610S, replace green with red for 600S.] Sorry for those who<br>
can't run Javascript programs.<br>
--------------6F43E614EDEAF6DFFF405F5C<br>
Content-Type: text/html; charset=us-ascii; name="ccd.html"<br>
Content-Transfer-Encoding: 7bit<br>
Content-Disposition: inline; filename="ccd.html"<br>
Content-Base: "file:/home/nicolas/ccd.html"<br>
<p>
&lt;body&gt;<br>
&lt;table border=1 width="100%"&gt;<br>
&lt;tr&gt;<br>
&lt;th&gt;Resolution&lt;/th&gt;<br>
&lt;th&gt;ccd&lt;/th&gt;<br>
&lt;th&gt;integer ccd&lt;/th&gt;<br>
&lt;th&gt;float ccd&lt;/th&gt;<br>
&lt;th&gt;n * currentGreen&lt;/th&gt;<br>
&lt;th&gt;n * previousGreen&lt;/th&gt;<br>
&lt;th&gt;n * currentBlue&lt;/th&gt;<br>
&lt;th&gt;n * previousBlue&lt;/th&gt;<br>
&lt;/tr&gt;<br>
&lt;script language=javascript&gt;<br>
for (r=1;r&lt;=300;r++)<br>
{<br>
ccd=r/37.5<br>
ccdl=Math.floor(ccd+.5)<br>
ccdf=ccd-ccdl<br>
if (ccdf&gt;=0)<br>
{<br>
bp=ccdf<br>
bc=1-bp<br>
<p>
gp=ccdf*2<br>
gc=1-gp<br>
<br>
}<br>
else<br>
{<br>
bc=-ccdf<br>
bp=1-bc<br>
<p>
gc=-ccdf*2<br>
gp=1-gc<br>
}<br>
<br>
document.write(<br>
'&lt;tr align=center&gt;',<br>
'&lt;td&gt;',r,'&lt;/td&gt;',<br>
'&lt;td&gt;',ccd,'&lt;/td&gt;',<br>
'&lt;td&gt;',ccdl,'&lt;/td&gt;',<br>
'&lt;td&gt;',ccdf,'&lt;/td&gt;',<br>
'&lt;td&gt;',gc,'&lt;/td&gt;',<br>
'&lt;td&gt;',gp,'&lt;/td&gt;',<br>
'&lt;td&gt;',bc,'&lt;/td&gt;',<br>
'&lt;td&gt;',bp,'&lt;/td&gt;',<br>
'&lt;/tr&gt;'<br>
)<br>
}<br>
&lt;/script&gt;<br>
&lt;tr&gt;<br>
&lt;th&gt;Resolution&lt;/th&gt;<br>
&lt;th&gt;ccd&lt;/th&gt;<br>
&lt;th&gt;integer ccd&lt;/th&gt;<br>
&lt;th&gt;float ccd&lt;/th&gt;<br>
&lt;th&gt;n * currentGreen&lt;/th&gt;<br>
&lt;th&gt;n * previousGreen&lt;/th&gt;<br>
&lt;th&gt;n * currentBlue&lt;/th&gt;<br>
&lt;th&gt;n * previousBlue&lt;/th&gt;<br>
&lt;/tr&gt;<br>
&lt;/table&gt;<br>
<p>
--------------6F43E614EDEAF6DFFF405F5C--<br>
<p>
<p>
<pre>
--
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">majordomo@mostang.com</a>
</pre>
<!-- body="end" -->
<p>
<ul>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0108.html">Ralph Angenendt: "Re: HELP: RedHat 5.0 and AHA1502AE SCSI adapter for Microtek E6 scanner setup"</a>
<li> <b>Previous message:</b> <a href="0106.html">Peter JD Hall: "Re: HELP: RedHat 5.0 and AHA1502AE SCSI adapter for Microtek E6 scanner setup"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>