Comments (24)
That error means that ThermimageJ is failing to extract information from the FLIR JPG. The macros extract the calibration constants from your JPG using Exiftool, thus the problem might be with your Exiftool install.
Go through the installation checks to make sure you have Exiftool installed as well as the other packages.
https://github.com/gtatters/ThermImageJ#installation-checks
I wrote this for Mac, and have tried to make compatible with Windows OS, but users should follow up on the peripheral installations on the respective websites for assistance.
from thermimagej.
You might have seen an older example where I painstakingly converted a single jpg in Thermimage (the R package) and then exported as raw and then imported that into ImageJ.
But ThermimageJ is my ImageJ macro solution to eliminate the need for the R package step. But a lot of the heavy lifting is being done by Exiftool which needs to be installed for ImageJ to "call" it
from thermimagej.
no problem.
maybe
dir exiftool.exe
will tell you what the path is in windows. I forget. on mac/linux it's:
where exiftool
from thermimagej.
excellent! I probably should have shared my youtube video showing how to install it all in the beginning!
As for the Analyse--> Measure question, yep, that's how ImageJ measures things. You might need to set up your measurements first (Analyse-->Set Measurements) and select what outputs you want (Mean, Median, SD etc).
I wrote some macros that do this measuring for you, but my macros were written for measuring thermal images of bird bills, so if you draw a circle around your object and hit the number 1,2,3,4,5, or 6, you'll get an automatically populated table. You could even edit the Thermimage.ijm file and rename those shortcuts to a custom object name if you wish.
I still haven't put a tutorial together for this. Many of the features in it are ImageJ features that other imageJ users are well familiar with, which is why I haven't yet done that.
from thermimagej.
also those short cut measuring macros automatically save your output to a .csv file on your desktop so you don't lose your progress! User beware mind you if it over-writes.
from thermimagej.
i'll close the issue for now. feel free to comment further if you wish. glad you find it useful! that means a lot.
from thermimagej.
I'm not sure why you would import - raw a FLIR formatted jpg. Well, actually there could be raw pixel data in the jpg, but it's not clear where to start the reading of pixel data would be. Thus the function you want to apply is in the ThermimageJ macros (see screenshot). Just use my macro to import--FLIR JPG and the file imported properly for me. I can even see temperature displayed as the pixel intensity since it gets converted to a 32-bit image during the macro import.
from thermimagej.
Thanks for the quick response.
So I don't need to convert my FLIR jpegs to raw in R in order to analyze them in ThermimageJ. That makes life easier.
Tried the macro Import FLIR JPG but got this message.
This makes me think the issue might be in the macro installation process, since it worked for you.
from thermimagej.
Thanks for clarifying.
I typed in ver -exiftool and the console outputted "12.40", which is a good sign according to your website, but I still get the same error when importing the FLIR JPEG.
Exiftool doesn't need to be in a certain folder within ImageJ does it?
from thermimagej.
4 thoughts before going into a 3 hour meeting. Do you know how to run command line code? You could try:
exiftool.exe Filename.jpg
just to verify that exiftool is running properly with your file. Share the output?
Second thought. You are trying to import a jpg that hasn't been altered? FLIR annoyingly call their files .jpg, but they aren't only a jpg, they do contain other info, so it needs to be an original FLIR file.
Could you share the output from the log window that ThermimageJ generates? Might give me some hints. I doubt it's my code, as your file worked for me. It likely is something about your system.
Can you verify if you have any whitespace in character names or folder names? Difficult for me to write code across 3 OS in ImageJ that doesn't snarl up when it encounters a space. See some of the other issues people have had.
from thermimagej.
- Okay, I ran the line of code you sent me on the JPEG (changed to the correct directory).
Output looks good:
-
I downloaded these FLIR jpegs directly from the web-based FLIR CamWeb interface (FLIR A70 model). These were captured directly from the camera and are unaltered:
And the accompanying log window:
- Do not see any whitespace in the image folder or image filenames.
from thermimagej.
Hmm...I've never encountered or thought of a . inside a folder name before, and perhaps my code assumes that would not be a normal folder/filename, since . usually is used immediately before the file type designator. Any chance you can put the jpg in the root c:\ and try loading it from there? It's possible I have code that strips out . and spaces.
But my version on mac can seemingly handle the . in the file name, so I might be on the wrong track here. I'm trying to eliminate all other possible potential issues. the error message isn't that helpful for me...but I'll look at the code to see.
from thermimagej.
And what happens if you try to run this code in the command line yourself? See how i've output "copy / paste this into command window to test".
from thermimagej.
did you change the default working directories in the Thermimage.ijm file to the appropriate folders on your system? Maybe that is why it's having trouble? Although, I trust that exiftool is formally installed in the c:\windows folder.
https://github.com/gtatters/ThermImageJ#setting-and-verifying-paths-to-command-line-tools
from thermimagej.
If I run in command window I get this:
I did not change working directories in the Thermimage.ijm file. Maybe that is the issue. Where in the macro code would that be?
from thermimagej.
close to the top with lines on the right asking user to "verify this".
Approximately line 113
Might have been cleaner way to ensure the path was there by default, but exiftool can be run however user wishes to install it.
from thermimagej.
it's possible you need to change
var exiftoolpathWindows="c:/windows/";
to
var exiftoolpathWindows="c:/windows/system32";
But it depends on where you installed exiftool.exe
from thermimagej.
I see it now, thank you. (Apologies for my amateur coding ability) Will let you know if this works.
from thermimagej.
if that solves the issue, you won't know unless you restart fiji or relaunch the toolset. Restart is easier to explain than relaunch.
from thermimagej.
Well this is weird, file not found? Both perl and exiftool are on my desktop.
(I'm going home for the day but will check this tomorrow)
from thermimagej.
at least for exiftool, I would follow Phil Harvey's explanation for how to install it in the c:\windows folder.
Perl is less important for you if you're only doing images. I wrote some perl script to split up thermal video files (Perl was the only language I could figure out).
from Exiftool website:
Stand-Alone Executable
Download the Windows Executable from the ExifTool home page.
(The file you download should be named "exiftool-12.40.zip".)
Extract "exiftool(-k).exe" from the ".zip" file, and place it on your Desktop.
(Double-click on "exiftool-12.40.zip" to open the archive, then drag "exiftool(-k).exe" to your Desktop.)
You can now double-click on "exiftool(-k).exe" to read the application documentation, or drag-and-drop files and folders to run exiftool on selected files. To install exiftool for use from the command line, continue with the following steps:
Rename "exiftool(-k).exe" to "exiftool.exe".
(or "exiftool(-k)" to "exiftool" if file name extensions are hidden on your system)
Move "exiftool.exe" to the "C:\WINDOWS" directory (or any other directory in your PATH).
You can now run exiftool by typing "exiftool" at the command prompt. (To get to the command prompt, select "Run..." from the Windows "Start" menu, then type "cmd" and press Return.)
Notes:
In Windows 7, running exiftool may require administrator privileges. If necessary, this may be enabled by right clicking on exiftool, then selecting "Run this program as administrator" from the Compatibility settings.
Windows 10 users have sometimes reported that exiftool hangs when run. This may be due to Windows Defender blocking or slowing down exiftool. To solve this, either disable Windows Defender or add an exclusion for exiftool (but note that exiftool may still run more slowly if you just add an exclusion).
Occasionally users have reported that exiftool gives errors when running this version for this first time. It is possible this may happen if the installation process gets interrupted. In this case, follow the Uninstalling instructions below then re-install exiftool. Be sure that you have sufficient disk space in your TEMP directory for exiftool to unpack about 12 MB of temporary files -- these are the Perl libraries used by the exiftool application which are unpacked the first time exiftool is run.
from thermimagej.
It worked! The path was the issue. I reinstalled exiftool.exe, put it in my user folder, and changed the ThermimageJ macro code to be consistent with the exiftool path. The image loaded perfectly.
Thank you so much for your help and patience.
from thermimagej.
One last question, If I use Analyze > measure after selecting the area of each berry, will the mean in the output window reflect the mean temperature of the region?
from thermimagej.
Awesome. I will definitely keep an eye out for any tutorials that you share. This program is really useful and accessible to scientists on a budget.
Again, I am super grateful for all your help. Will definitely cite your work in our upcoming paper in cranberry research. :)
from thermimagej.
Related Issues (12)
- converted FLIR jpeg images result in 0 Byte files HOT 15
- AVI files won't play after SEQ import HOT 1
- import optical layer as well HOT 1
- cant find how to determin temperature HOT 4
- import Flir mp4 HOT 3
- opening CSQ files HOT 14
- ThermalImageJ says image type not recognized HOT 10
- Import JPG or TIFF from Lepton 3 HOT 15
- Error: "Index (-1) is outside of the 0--1 range in line 2499:" HOT 3
- No byte swap for FLIR png with new "Import with defaults" HOT 3
- "run Byte Swapper" issue when importing FLIR JPG HOT 14
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 thermimagej.