Package ij.plugin

Class Binner

  • All Implemented Interfaces:
    PlugIn

    public class Binner
    extends Object
    implements PlugIn
    This plugin implements the Image/Transform/Bin command. It reduces the size of an image or stack by binning groups of pixels of user-specified sizes. The resulting pixel can be calculated as average, median, maximum or minimum.
    Author:
    Nico Stuurman, Wayne Rasband
    • Field Detail

      • AVERAGE

        public static int AVERAGE
      • MEDIAN

        public static int MEDIAN
      • MIN

        public static int MIN
      • MAX

        public static int MAX
      • SUM

        public static int SUM
    • Constructor Detail

      • Binner

        public Binner()
    • Method Detail

      • run

        public void run​(String arg)
        Description copied from interface: PlugIn
        This method is called when the plugin is loaded. 'arg', which may be blank, is the argument specified for this plugin in IJ_Props.txt.
        Specified by:
        run in interface PlugIn
      • shrink

        public ImagePlus shrink​(ImagePlus imp,
                                int xshrink,
                                int yshrink,
                                int zshrink,
                                int method)