-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no_auto_scale implementation? #28
Comments
You're absolutely right that the no_auto_scale declaration appears in the source code but is actually not made available currently. This would be exactly what you need and I think it's useful in general. Can you think of any other useful options that are not available yet from the libraw_output_params_t struct (see https://www.libraw.org/docs/API-datastruct-eng.html)? Then we could cluster more changes into a new release. |
Thank you for that quick response! I've looked through the libraw_output_params_t struct a couple of times now, and for getting from raw to tiff with as few transformations as possible, i'm pretty sure the no_auto_scale is the only piece remaining. Because my research is essentially using cameras as light radiometers and I have little experience with making stunning and beautiful photographs, I can't say for sure if there are any parameters in the linked document that aren't implemented but that would help a photographer. Here's my code so far. It uses rawpy to convert NEF files to Tiffs, that were captured from 2 Nikon cameras (one was modified to capture near-infrared light and block visible light, and the other is unmodified). It iterates through a given folder/path, and for the NIR camera, it exports only the red channel as a monochrome 16-bit tiff. I don't know if any of this would be useful in the documentation (showing folder iteration or channel slicing) but you're welcome to use any of it. Thanks again for your help!
|
Thanks for the details. I just released 0.10.0 which contains no_auto_scale and can be used like in your example (docs aren't updated yet). It also provides linux binary wheels for the first time so there is no need to install libraw manually anymore. Let me know if it works. |
Good evening,
I'm very interested in using rawpy to convert my Nikon NEF raw files to tiff format with as little image transformations as possible. So far, rawpy has been fantastic for this, but I'm struggling with one issue. I'm not sure if this is a feature request or if the functionality already exists, but here it is:
My Nikon NEF raw files are 14-bits, so 16,384 possible values. When I use rawpy to convert the raw image into a 16-bit tiff, I want the values to be maintained fro 0 to 16384, and not from 0 to 65536.
I think in this context, we are talking about auto-scaling, and I've noticed in the _rawpy.pyx on line 136 there is a no_auto_scale line with the comment "Disable Auto-scale". Is this already implemented in a way that I can use with the raw.postprocess() function or is this something that could be implemented and added into the master branch?
Thank you for your help and response!
The text was updated successfully, but these errors were encountered: