My driver process the threshold&nbsp; at present .&nbsp; If&nbsp; the value of&nbsp; pixel greater than the threshold ,the value of pixel is set 255. Otherwise the value of pixel is set 0.  <br><br><div class="gmail_quote">2008/6/23 m. allan noah &lt;<a href="mailto:kitno455@gmail.com">kitno455@gmail.com</a>&gt;:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="Wj3C7c">On 6/23/08, Daniel Glöckner &lt;<a href="mailto:daniel-gl@gmx.net">daniel-gl@gmx.net</a>&gt; wrote:<br>

&gt; On Mon, Jun 23, 2008 at 05:04:57PM +0800, eagleskycloud wrote:<br>
&gt; &nbsp;&gt; &nbsp; &nbsp; &nbsp;My driver process threshold while lineArt scan now. If XSane could<br>
&gt; &nbsp;&gt; process threshold, my driver would get simple.<br>
&gt;<br>
&gt;<br>
&gt; IMHO lineArt should be advertised only for devices that can do the<br>
&gt; &nbsp;conversion in hardware. Doing it in hardware has the benefit of reduced<br>
&gt; &nbsp;USB/SCSI bandwidth. Drivers should not cover up for cheap hardware.<br>
&gt;<br>
&gt; &nbsp;There is a list of planned features for XSane.<br>
&gt;<br>
&gt; &nbsp;<a href="http://www.xsane.org/xsane-future.html" target="_blank">http://www.xsane.org/xsane-future.html</a><br>
&gt;<br>
&gt; &nbsp;If you want lineArt conversion to be included there, you need to contact<br>
&gt; &nbsp;the author. He is no longer on this mailing list.<br>
<br>
</div></div>this is a place where i disagree with daniel, for two reasons-<br>
<br>
1. It would still help with bandwidth in the net backend case, which<br>
sould like it might become the standard in some future version of<br>
sane.<br>
<br>
2. it is good if all backends present a similar interface, so that<br>
front-ends like scanimage can still have access to these functions.<br>
<br>
&nbsp;to that end- i have been working on a sanei_threshold library that<br>
backends of dumb scanners could share. it still has the same effect of<br>
code only in one place. i need a good algorithm though- eagleskycloud-<br>
what mechanism were you planning to use? straight threshold, or<br>
something adaptive?<br>
<br>
allan<br>
<font color="#888888">--<br>
&quot;The truth is an offense, but not a sin&quot;<br>
</font></blockquote></div><br>