Class ConvertFromImagePlus

Object
ConvertFromImagePlus

public class ConvertFromImagePlus extends Object
Converts an ImagePlus into a channel or voxels.

Voxel buffers are always copied from the ImagePlus not reused. This creates a performance penalty.

Author:
Owen Feehan
  • Method Details

    • toChannel

      public static Channel toChannel(ij.ImagePlus imagePlus, Optional<Resolution> resolution)
      Converts an ImagePlus to a Channel.
      Parameters:
      imagePlus - the image-plus to convert
      resolution - image-resolution
      Returns:
      a newly created channel containing a newly created buffer (copied from image-plus)
    • toVoxels

      public static VoxelsUntyped toVoxels(ij.ImagePlus image)
      Converts an ImagePlus to a VoxelsUntyped.
      Parameters:
      image - the image-plus to convert
      Returns:
      newly created voxels-buffer (copied from image-plus)