Jeffrey N. Muprhy @MurphysLab
A small miscellany of macro code files for ImageJ, for various tasks.
Some are simply demo files.
-
Find_All_Pixel_Groups.ijm Finds all groups of connected pixels in a binary image; demonstrates two methods.
-
Line_to_Scalebar_Equal_Ticks.jnm Divides a line into N equal parts with N-1 ticks.
-
Draw_Spheres_and_Merge_Stacks.ijm Creates two stacks with binary spheres, then overlays them in RGB colour
-
Point-to-Line Distance Distribution.ijm Draws a scatterplot showing pixel values and distances relative to a line selection.
Output scatter plot, with distance on the horizontal axis and value on the vertical axis (decreasing downward).
-
Square_Grid_Crop.ijm Crops out squares from a grid that are separated by dark lines using particle analysis.
Input image of a grid:
Output images from grid:
-
PixelShuffle2.ijm is a replacement for PixelShuffle.ijm. The original was very slow due to an inefficient shuffling algorithm. The replacement uses the Fisher–Yates shuffle algorithm:









