ImageJ macro for setting white balance of brightfield microscopy images - dark object on a white background. A small area of background needs to be selected before running the macro. This is a modification of a macro by Vytas Bindokas (2006) & Patrice Mascalchi (2014).
An attempt to automatically correct white balance by using the modes of the RGB histograms. Works well in brightfield microscopy images with a large background area.
Normalize brightness of all slices in a stack to the same value. Used this for fluorescence Z-stacks.
Batch convert images between formats supported by Bio-formats importer. The macro will recursively process whole directory with subdirectories. The input and output formats for conversion are set by editing the macro, as well as processing options: you can set the macro to store all converted images in a single directory or in the original directory structure, and you can also choose to prepend the directory name to the filename (this can be useful if you store all converted images in a single directory). When starting the macro you will be asked for the directory with source images and where to store converted files. If you choose the same directory, converted files will be stored alongside originals.
Batch conversion of image file types, based on the BatchFormatConvert.ijm, with the addition of an automatically sized scale bar. Source images need to be spatially calibrated (eg. images in ZVI format generated by Zeiss Axiovision software have spatial calibration built-in, if it is set-up during image acquisition). The scale bar length is calculated as a 1-2-5 series until it reaches 1/10th of the image width. The 1-2-5 series is calculated as a recursive function, where each previous number is multiplied by 2.3 (or 2.4) and rounded to 1 significant digit. The v2 version uses script parameters for initial setup and has gamma correction. The Windows file separator \ was replaced by File.separator function.
A macro to add automatically sized scalebar to the image.