(UPDATED FEBRUARY 8, 2018)
Assuming you have already created label .txt files for each of your images, using ALT or any other similar labeling tool. This Fiji plugin is for people who wants to quickly verify if all the labelling data is in right place, and error free.
It reads images and their corresponding label text file from same directory, converts label rectangles to permanent drawings, writes label’s name to the top of topleft corner, then saves the output as jpeg file to another directory, with “th_” prefix. It checks for unique label types and assigns a different color for each unique label (up to 9 labels, the remaining label types will be drawn in black). ESC key is used to stop running macro anytime.
You can quickly view the output images to see if any labels are misaligned, or in wrong place, at wrong dimensions, etc..
It also creates a list of unique labels found in the input folder, and saves the list to output directory as “list_of_labels.txt”.
You can choose;
- Which image format will be processed from input folder (jpeg, png..)
- Final image dimension (100%, 50% or 25%)
- Font size of label text
for the output images.
Download current: Alp’s Label to Image (Windows & Ubuntu) ; 07mar2017
The plugin has been successfully tested on Windows 10 and Ubuntu 14.04 environments.
See down below for whats new in the current and links to older versions, in case if current version fails for some reason.
Open the archive file, drag and drop the plugins folder in it onto Fiji.app folder (Your Fiji program folder). This version was not tested throughly, but appears working in Ubuntu, too.
Whole installation process (including Fiji) and basic usage is documented in the video below.
Please be sure that the input folder contains all the images and their text files, in the same folder (not in subfolders!). If there are image files without label files, program will stop with a warning.
- Alps Label to Image (Windows&Ubuntu); 07mar2017
- In this version, each label type have its own color, up to 9 different labels (remaining label rectangle and titles are drawn in black). Also asks for font size, for comfortable reading of printed labels.
- Another feature is, it scans all label .txt files and creates a unique list of labels found in input folder. Then it saves the list as a text file to output directory as “list_of_labels.txt”. This way you can see if there are any problems with label names, like mispelled labels, etc.
- Alps Label to Image (Windows); 02mar2017
- Now rectangles have their label text on their topleft corners. Font size increases at different image scales so label’s name remains readable.
- Alps Label to Image (Windows); 01mar2017