Debian Codegraph @

src/main/java/nom/tam/fits/compression/algorithm/quant/package-info.java

raw
1 /**
2 * <p>
3 * Quantization support for representing floating-point values with integers corresponding to discrete levels. While not
4 * a compression alorithm in itself (hence you might also wonder why it's in a package on its own under compression
5 * algorithms) quantization is nevertheless commonly used as a pre-sompression (or post-decompression step) with actual
6 * algorithms, especially if the algorithms are designed for integer-only data.
7 * </p>
8 * <p>
9 * Quantization is an inherently lossy process, so it will result in a lossy compression even when paired with a
10 * lossless compression algorithm. However, it can significantly improve compression ratios when images have limited
11 * dynamic range. For example a 2-byte integer quantization of double-precision values will provide 64k discrete levels
12 * at 1/4<sup>th</sup> of the required storage space -- even before compression is applied.
13 * </p>
14 * <p>
15 * The only class in here that users would typically interact with is
16 * {@link nom.tam.fits.compression.algorithm.quant.QuantizeOption} or
17 * {@link nom.tam.image.compression.hdu.CompressedImageHDU#getCompressOption(Class)} to set options after a quantization
18 * algorithm was selected for compressing an image HDU.
19 * </p>
20 */
21
22 package nom.tam.fits.compression.algorithm.quant;
23
24 /*-
25 * #%L
26 * nom.tam FITS library
27 * %%
28 * Copyright (C) 1996 - 2024 nom-tam-fits
29 * %%
30 * This is free and unencumbered software released into the public domain.
31 *
32 * Anyone is free to copy, modify, publish, use, compile, sell, or
33 * distribute this software, either in source code form or as a compiled
34 * binary, for any purpose, commercial or non-commercial, and by any
35 * means.
36 *
37 * In jurisdictions that recognize copyright laws, the author or authors
38 * of this software dedicate any and all copyright interest in the
39 * software to the public domain. We make this dedication for the benefit
40 * of the public at large and to the detriment of our heirs and
41 * successors. We intend this dedication to be an overt act of
42 * relinquishment in perpetuity of all present and future rights to this
43 * software under copyright law.
44 *
45 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
46 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
47 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
48 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
49 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
50 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
51 * OTHER DEALINGS IN THE SOFTWARE.
52 * #L%
53 */