kopia lustrzana https://gitlab.com/sane-project/website
149 wiersze
5.1 KiB
HTML
149 wiersze
5.1 KiB
HTML
<!-- 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->CCD_distance = us->inquiry_CCD_line_distance;<br>
|
||
<p>
|
||
become<br>
|
||
<p>
|
||
us->CCD_distance = us->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 < ccd < 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 <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>
|
||
<body><br>
|
||
<table border=1 width="100%"><br>
|
||
<tr><br>
|
||
<th>Resolution</th><br>
|
||
<th>ccd</th><br>
|
||
<th>integer ccd</th><br>
|
||
<th>float ccd</th><br>
|
||
<th>n * currentGreen</th><br>
|
||
<th>n * previousGreen</th><br>
|
||
<th>n * currentBlue</th><br>
|
||
<th>n * previousBlue</th><br>
|
||
</tr><br>
|
||
<script language=javascript><br>
|
||
for (r=1;r<=300;r++)<br>
|
||
{<br>
|
||
ccd=r/37.5<br>
|
||
ccdl=Math.floor(ccd+.5)<br>
|
||
ccdf=ccd-ccdl<br>
|
||
if (ccdf>=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>
|
||
'<tr align=center>',<br>
|
||
'<td>',r,'</td>',<br>
|
||
'<td>',ccd,'</td>',<br>
|
||
'<td>',ccdl,'</td>',<br>
|
||
'<td>',ccdf,'</td>',<br>
|
||
'<td>',gc,'</td>',<br>
|
||
'<td>',gp,'</td>',<br>
|
||
'<td>',bc,'</td>',<br>
|
||
'<td>',bp,'</td>',<br>
|
||
'</tr>'<br>
|
||
)<br>
|
||
}<br>
|
||
</script><br>
|
||
<tr><br>
|
||
<th>Resolution</th><br>
|
||
<th>ccd</th><br>
|
||
<th>integer ccd</th><br>
|
||
<th>float ccd</th><br>
|
||
<th>n * currentGreen</th><br>
|
||
<th>n * previousGreen</th><br>
|
||
<th>n * currentBlue</th><br>
|
||
<th>n * previousBlue</th><br>
|
||
</tr><br>
|
||
</table><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>
|