Products > Thermal Imaging

In FLIR One, at what points are the upscaling applied?

(1/3) > >>

Ben321:
I know that the final output is upscaled 4x (from 160x120 to 640x480) via the MSX technique that combines the visible light image and LWIR image, and that a 2x upscaled (to 320x240) image is stored as the embedded "raw" image in the JPEG file. But at what points are these upscalings performed? I assume that the the 4x MSX upscaling is performed in software (the actual smartphone app), as the FLIR Lepton does not contain the visible light camera, and therefore the Lepton chip doesn't have access to the visible light image to perform MSX scaling in-hardware. However the 2x upscaling of the LWIR only image COULD be accomplished in-hardware, but I don't know if it is.

Does anybody here know at what point the LWIR image is 2x upscaled? If it's done in-software, I know of an easy way to get around it. Buy a copy of the FLIR One SDK, write an app which simply takes the raw LWIR image, and saves it to a 16bit grayscale TIFF file. This would then make the TRULY raw data easily accessible to any Windows PC with software such as Photoshop. However, if the 2x is performed in the Lepton chip itself, then there's no way around it.

If there's a microcontroller in the FLIR One, and the 2x upscale is performed in the microcontroller, it would be more difficult, but a hardware mod would be theoretically possible. You'd need to desolder the microcontroller (or unplug it from its socket if it uses one), connect it to a microcontroller programmer device, dump the program to ASM code, rewrite the applicable parts of the assembly code program, re-assemble the code, upload it to the microcontroller, and then re-connect (resolder it or plug it back into its socket if it uses one) the microcontroller.

tomas123:
 MSX works in Software
see https://www.eevblog.com/forum/testgear/question-about-flir-one-for-android/msg832208/#msg832208

With free (!) SDK you get also RAW Lepton sensor values
https://www.eevblog.com/forum/testgear/flir-one-thermal-imaging-camera-teardown-and-hacks/msg799649/#msg799649

Ben321:

--- Quote from: tomas123 on January 07, 2016, 11:36:53 pm ---With free (!) SDK you get also RAW Lepton sensor values
https://www.eevblog.com/forum/testgear/flir-one-thermal-imaging-camera-teardown-and-hacks/msg799649/#msg799649

--- End quote ---

And by raw, you mean mean TRULY raw, as in absolutely no upscaling or other processing at all? Does the SDK permit you to write Windows PC software, so that one could use the FLIR One on a the USB port of a desktop or laptop computer (via a USB to MicroUSB adapter)? Or does it only give one the ability to write mobile apps for the FLIR One?

If in fact it does only give one the ability to write mobile apps, has anybody yet used it to write an app that snaps truly raw images (160x120 16bit pixels), and then save them as uncompressed 16bit grayscale TIFF files? If so, that is one app I'd LOVE to have. It might actually make it worth spending $250 on the FLIR One.

cynfab:
No, the SDK is only for android, but with the work that tomas123 and I have done, you may be able to adapt the flir8x.c code to run on Windoze.
The data that comes from the Flir One G2 via USB, is 14bit data 160 x 120 pixels. It has had FFC applied, but not factory calibration ( that's what Camerfiles.zip is for).
Calibration is performed by the native methods supplied as a binary library by the SDK: libjnidevicewrapper.so
Hopefully the Flir One SDK is the beginning of what Flir is going to provide, but don't hold your breath...

   ...ken...

Ben321:

--- Quote from: cynfab on January 08, 2016, 01:06:25 am ---No, the SDK is only for android, but with the work that tomas123 and I have done, you may be able to adapt the flir8x.c code to run on Windoze.
The data that comes from the Flir One G2 via USB, is 14bit data 160 x 120 pixels. It has had FFC applied, but not factory calibration ( that's what Camerfiles.zip is for).
Calibration is performed by the native methods supplied as a binary library by the SDK: libjnidevicewrapper.so
Hopefully the Flir One SDK is the beginning of what Flir is going to provide, but don't hold your breath...

   ...ken...

--- End quote ---

What's FFC? And where is this flir8x.c C source code file you referenced? Where can I get a copy?

As for Android apps written using the SDK, has anybody yet made one that takes the raw data and saves it as a 16bit grayscale TIFF file? If so, that's one app I'd love to have. It would actually make it worth buying a FLIR One for my Android phone. As it is now, that 2x scaling applied to the raw data that's embedded in the JPEG saved by the official app, makes it not suitable to me. But if you can make an app that actually saves the raw 160x120 16bpp pixel data to a TIFF file, that would make it worth it for me to buy a FLIR One. Note, that the raw data actually comes with 4 extra pixels in each line (based on some images I've seen), to make it 164x120. These maybe calibration data or something, I'm not sure. But the TIFF file saved by the app that I'm picturing now, would get rid of those extra pixels and save only a 160x120 TIFF image. Note that the file extension should be tif, not tiff, in order to be compatible with most software. If such an app doesn't yet exist, please consider creating such an app.

Navigation

[0] Message Index

[#] Next page

There was an error while thanking
Thanking...
Go to full version