Comments (5)
I've found an example here and added it to my example set:
https://github.com/scichains/scichains-maps/tree/main/build/java/resources/demo/images/tiff/rare_precisions
But I'm planning to move my TIFF support to another GitHub project soon, so the previous link will become invalid.
from twelvemonkeys.
I didn't write this specific code. Please see this StackOverflow answer, where the author explicitly addresses the lines you mention.
So, yes, your code is correct. The other version will just make gradients look smoother. 😀
from twelvemonkeys.
Giving it some more thought... Maybe we should just change it to the more standard version, to be less confusing in edge cases like this?
16 bit floats are quite exotic and not very useful in my mind, anyway...
from twelvemonkeys.
Thank you for the fix!
Really, it is an exotic case, as well as 24-bit float. But it seems these bit depths could be useful if we need to store large image (100000x100000 ?) containing some result of image processing, such as gradients or Sobel filter. Such operations are usually work much better when they are performed with floating-point values. At the same time, the results are usually close to 0.0, and we do need good precision for values near 0.0, but not for large values like 100-200 (when the source image is represented by bytes 0..255). 16-bit float is an ideal choice for this situation.
from twelvemonkeys.
Btw.. Do you happen to have any sample TIFF files with 24 bit floats?
Maybe I need a ThreeQuarter
type... 😛
from twelvemonkeys.
Related Issues (20)
- JPEG: Preserve metadata when writing CMYK HOT 5
- The OSGi support only exports the ImageReaderSpi services and not the ImageWriterSpi services HOT 1
- BMP: Write support for more ARGB types HOT 1
- Some malformed PSD images never return from `ImageIO.read()` using 3.10.0 HOT 2
- WebP: Images decoded with yellow tint HOT 1
- Troubleshooting with ImageIO plugin registry issue (NoClassDefFoundErrors) without web.xml file HOT 1
- YCCK JPEG from a PDF with wrong colors HOT 5
- TIFF: Support SAMPLEFORMAT_COMPLEXINT (5) HOT 3
- WebP plugin stops working when other plugins are enabled too HOT 2
- PSD: Get layer kind (type) to metadata HOT 1
- Twelvemonkeys Servlet should support Jakarta HOT 6
- JPEGImageReader read invalid image without throwing exception HOT 4
- PSD: When make PNG from PSD using TwelveMonkeys, it's different from Photoshop. HOT 4
- Change Maven GPG plugin to use Bouncy Castle signer
- Unsupported BitsPerSample for SampleFormat 3/Floating Point (expected 16/32): 64 HOT 4
- PSD: BufferOverflowException if encoder adds garbage to the end of rows
- Dynamic images in WebP format, and even ordinary GIF images, cannot read delays after using this plugin. HOT 2
- Warning system custom messages HOT 3
- Unable to read dynamic webp using javax.imageio.ImageIO#read(java.io.InputStream) on aws lambda HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twelvemonkeys.