-
Notifications
You must be signed in to change notification settings - Fork 53
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
Documentation? [How to colormap frames] #85
Comments
Hi, Sorry I have very little time to work on this (apologies it's not documented), but I'm happy to answer questions if you have something specific you're struggling with. I think the code should be fairly straightforward. The code attempts to locate "magic" bytes in the input SEQ file to find FFF frame boundaries. Then, it tries to decode the header for each FFF block which contains calibration data and the image, stored as a TIFF (for example). The most recent code attempts do to this lazily so you don't need to export the entire file to work with a specific frame. This has proved more difficult than I expected because there is a lot of variation within SEQ file headers. EXIFtool seems to be able to handle this, and so earlier versions of Flirpy just used that. The splitter example covers typical usage - you give it a list of files and and an output folder: https://github.com/LJMUAstroecology/flirpy/blob/master/scripts/split_seqs but the Thanks |
Thank you for the quick response! Specifically, I've been trying to use flirpy's |
Oh ok, you just need to colormap the image. This isn't something specific to Flirpy: https://learnopencv.com/applycolormap-for-pseudocoloring-in-opencv-c-python/ Flirpy will give you a radiometric image, but each pixel has a single intensity which you need to map to a colour. So something like:
This will create an image similar to "auto gain". We subtract the minimum value to get max contrast and we convert the range of values to 8-bit (0-255). Then use The reason that flirpy doesn't do this automatically is that users want different visualisation options, so we just dump the "raw" data. However it would probably be a good feature to add as people expect thermal images to be coloured. |
Thank you!
|
The input is a 2D numpy array (HxW) and the output is a 3D numpy array (HxWxC) where C=3 - but it sounds like you're using Perl? |
Proposed enhancement:
|
Any chance we could get some documentation? Especially for the
Seq
class, since that's what I'm trying to work with.The text was updated successfully, but these errors were encountered: