sane-project-website/old-archive/1998-12/0022.html

85 wiersze
4.5 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.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!-- received="Thu Dec 3 08:08:41 1998 PST" -->
<!-- sent="02 Dec 1998 11:36:36 -0800" -->
<!-- name="David Fox" -->
<!-- email="dsfox@cogsci.ucsd.edu" -->
<!-- subject="Re: Adjusting contrast and brightness" -->
<!-- id="´ßkUU" -->
<!-- inreplyto="Wed, 2 Dec 1998 10:26:09 -0500 (EST)"" -->
<title>sane-devel: Re: Adjusting contrast and brightness</title>
<h1>Re: Adjusting contrast and brightness</h1>
<b>David Fox</b> (<a href="mailto:dsfox@cogsci.ucsd.edu"><i>dsfox@cogsci.ucsd.edu</i></a>)<br>
<i>02 Dec 1998 11:36:36 -0800</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#22">[ date ]</a><a href="index.html#22">[ thread ]</a><a href="subject.html#22">[ subject ]</a><a href="author.html#22">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0023.html">William L. Sebok: "Re: Adjusting contrast and brightness"</a>
<li> <b>Previous message:</b> <a href="0021.html">Matto Marjanovic: "Patch 1 for microtek backend v0.10"</a>
<li> <b>In reply to:</b> <a href="0010.html">William L. Sebok: "Re: Adjusting contrast and brightness"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0018.html">Oliver Rauch: "Re: Adjusting contrast and brightness"</a>
<!-- reply="end" -->
</ul>
<!-- body="start" -->
"William L. Sebok" &lt;<a href="mailto:wls@astro.umd.edu">wls@astro.umd.edu</a>&gt; writes:<br>
<p>
<i>&gt; David Fox says:</i><br>
<i>&gt;</i><br>
<i>&gt; &gt; What I miss from the Windows scanning software is the way it could</i><br>
<i>&gt; &gt; automatically choose good settings for the brightness and contrast</i><br>
<i>&gt; &gt; based on the selected section of the preview. I'm interested in</i><br>
<i>&gt; &gt; implementing this for xscanimage, can anyone point me to a good</i><br>
<i>&gt; &gt; algorithm for doing this, or to a source of good algorithms?</i><br>
<i>&gt;</i><br>
<i>&gt; Actually, automatically choosing brightness, contrast and gamma from</i><br>
<i>&gt; a selection on the preview is exactly the feature on the windows</i><br>
<i>&gt; driver for my Umax S12 that I miss most in sane. That and being</i><br>
<i>&gt; able to zoom the preview window to make a decently precise</i><br>
<i>&gt; selection.</i><br>
<p>
Well, then I suppose we can begin to make a few conjectures. One<br>
approach would be to interactively modify the appearance of the<br>
preview image based on the current settings of the controls. This<br>
could be done based on a calibration run performed on a test image<br>
which would record the behavior of the scanner at various settings.<br>
My preliminary tests show that my HP 3c scanner exhibits a fairly<br>
linear response to these controls. Perhaps it could be built into the<br>
back end. A larger and/or adjustable preview area will be an<br>
essential prerequisite to making this useful.<br>
<p>
A real-time display of the brightness histogram of the preview image<br>
might be a useful stopgap measure.<br>
<p>
Having the software actually select the contrast and brightness and<br>
gamma is a lot trickier, with subjective elements. Its one of those<br>
problems, like the travelling salesman problem, that are impossible in<br>
theory but solved in practice every day. Are the algorithms for doing<br>
this proprietary, or are there no image processing experts here? I<br>
know about image synthesis, but not much about image processing.<br>
<p>
My slide scanner also does color cast removal under Windows. I<br>
believe this is done by actually examining the color of the emulsion<br>
by adjusting the focus. Its not working under Sane yet so I can't<br>
investigate this right now.<br>
<pre>
--
David Fox <a href="http://hci.ucsd.edu/dsf">http://hci.ucsd.edu/dsf</a> xoF divaD
UCSD HCI Lab baL ICH DSCU
<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="0023.html">William L. Sebok: "Re: Adjusting contrast and brightness"</a>
<li> <b>Previous message:</b> <a href="0021.html">Matto Marjanovic: "Patch 1 for microtek backend v0.10"</a>
<li> <b>In reply to:</b> <a href="0010.html">William L. Sebok: "Re: Adjusting contrast and brightness"</a>
<!-- nextthread="start" -->
<li> <b>Next in thread:</b> <a href="0018.html">Oliver Rauch: "Re: Adjusting contrast and brightness"</a>
<!-- reply="end" -->
</ul>