sane-project-website/old-archive/1999-04/0085.html

79 wiersze
3.9 KiB
HTML
Czysty Wina Historia

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="Mon Apr 5 14:00:07 1999 PDT" -->
<!-- sent="Mon, 5 Apr 1999 22:00:47 +0100 (BST)" -->
<!-- name="Nick Lamb" -->
<!-- email="njl98r@ecs.soton.ac.uk" -->
<!-- subject="Re: 16 bit per sample support" -->
<!-- id="" -->
<!-- inreplyto="m10TqSr-00019RC@hex" -->
<title>sane-devel: Re: 16 bit per sample support</title>
<h1>Re: 16 bit per sample support</h1>
<b>Nick Lamb</b> (<a href="mailto:njl98r@ecs.soton.ac.uk"><i>njl98r@ecs.soton.ac.uk</i></a>)<br>
<i>Mon, 5 Apr 1999 22:00:47 +0100 (BST)</i>
<p>
<ul>
<li> <b>Messages sorted by:</b> <a href="date.html#85">[ date ]</a><a href="index.html#85">[ thread ]</a><a href="subject.html#85">[ subject ]</a><a href="author.html#85">[ author ]</a>
<!-- next="start" -->
<li> <b>Next message:</b> <a href="0086.html">Jonathan A. Buzzard: "Re: 16 bit per sample support"</a>
<li> <b>Previous message:</b> <a href="0084.html">Oliver Rauch: "xsane-0.20 available"</a>
<li> <b>In reply to:</b> <a href="0077.html">Jonathan A. Buzzard: "Re: 16 bit per sample support"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>
<!-- body="start" -->
I said:<br>
<i>&gt; There is no data loss (watch this...</i><br>
<i>&gt; 0xabc (12bit) --&gt; 0xabca (16bit) --&gt; 0xabc (12bit)</i><br>
<i>&gt; 0x123 (12bit) --&gt; 0x1231 (16bit) --&gt; 0x123 (12bit) </i><br>
<p>
Jonathan replies:<br>
<i>&gt; Because you have mugged the values. X-rays where only an example, but the</i><br>
<i>&gt; same could be said of other sources such as aerial photography etc.</i><br>
<i>&gt; With these sorts of things you often want to do calculations on the</i><br>
<i>&gt; scanned images.</i><br>
<p>
<i>&gt; For example I might have three Xrays of an object, that after some sort</i><br>
<i>&gt; of registration I wish to stack on top of one another. The Xrays have</i><br>
<i>&gt; been scanned say at 12 bits, now if you have stretched them though to</i><br>
<i>&gt; the full dynamic range of 16 bits adding the pixel values together</i><br>
<i>&gt; will result in loss of information. If they had stayed as 12 bits inside</i><br>
<i>&gt; a 16 bit value there is no problem.</i><br>
<p>
If you really must have back the 12-bit data you can do the second transform<br>
I showed, and get back the 12-bit data. There is no data loss involved. For<br>
most applications it is appropriate to use the full dynamic range, but you<br>
are right that some software will lose data working on 16-bit images. IMHO<br>
this software is broken (but I would say that because the tools I'm using<br>
don't have this problem)<br>
<p>
The feature you describe (an additional toggle setting for stretch vs<br>
truncate) seems excessive even for Advanced options, where it will probably<br>
confuse users in a less technical environment. I don't think we want the<br>
advanced setting to mean "Deep magic for image processing people".<br>
<p>
If this level of accuracy (probably beyond human vision) is required for your<br>
application, you should suspect a lot of other components (optical problems<br>
at capture stage, development process, scanner hardware, ADC) before SANE.<br>
<p>
Nick.<br>
<p>
Check out <a href="http://godzilla.ecs.soton.ac.uk:8888/images.html">http://godzilla.ecs.soton.ac.uk:8888/images.html</a><br>
for Accurate Color, High Resolution images delivered to a perfectly<br>
ordinary web browser (with Javascript and Java)<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="0086.html">Jonathan A. Buzzard: "Re: 16 bit per sample support"</a>
<li> <b>Previous message:</b> <a href="0084.html">Oliver Rauch: "xsane-0.20 available"</a>
<li> <b>In reply to:</b> <a href="0077.html">Jonathan A. Buzzard: "Re: 16 bit per sample support"</a>
<!-- nextthread="start" -->
<!-- reply="end" -->
</ul>