Tabnine Logo
ImagePlusImg.reduceDimensions
Code IndexAdd Tabnine to your IDE (free)

How to use
reduceDimensions
method
in
net.imglib2.img.imageplus.ImagePlusImg

Best Java code snippets using net.imglib2.img.imageplus.ImagePlusImg.reduceDimensions (Showing top 2 results out of 315)

origin: net.imglib2/imglib2-ij

protected ImagePlusImg(
    final int width,
    final int height,
    final int depth,
    final int frames,
    final int channels,
    final int entitiesPerPixel )
{
  super( reduceDimensions( new long[] { width, height, channels, depth, frames } ), entitiesPerPixel );
  this.width = width;
  this.height = height;
  this.depth = depth;
  this.frames = frames;
  this.channels = channels;
}
origin: net.imglib2/imglib2-ij

/**
 * Compute the minimal required number of dimensions for a given
 * {@link ImagePlus}, whereas width and height are always first.
 *
 * E.g. a gray-scale 2d time series would have three dimensions
 * [width,height,frames], a gray-scale 3d stack [width,height,depth] and a
 * 2d composite image [width,height,channels] as well.  A composite 3d
 * stack has four dimensions [width,height,channels,depth], as a time
 * series five [width,height,channels,depth,frames].
 */
protected static long[] reduceDimensions( final ImagePlus imp )
{
  final int[] dimensions = imp.getDimensions();
  final long[] impDimensions = new long[ dimensions.length ];
  for ( int d = 0; d < dimensions.length; ++d )
    impDimensions[ d ] = dimensions[ d ];
  return reduceDimensions( impDimensions );
}
net.imglib2.img.imageplusImagePlusImgreduceDimensions

Javadoc

Compute the minimal required number of dimensions for a given ImagePlus, whereas width and height are always first. E.g. a gray-scale 2d time series would have three dimensions [width,height,frames], a gray-scale 3d stack [width,height,depth] and a 2d composite image [width,height,channels] as well. A composite 3d stack has four dimensions [width,height,channels,depth], as a time series five [width,height,channels,depth,frames].

Popular methods of ImagePlusImg

  • getImagePlus
  • <init>
    Standard constructor as called by default factories.Note that this constructor does not know about t
  • cursor

Popular in Java

  • Running tasks concurrently on multiple threads
  • findViewById (Activity)
  • requestLocationUpdates (LocationManager)
  • setContentView (Activity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • Option (scala)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now