public final class Downsampler extends Object
NDTiffStorage.downsample. Produces an image of dimensions
ceil(width/2) × ceil(height/2); odd edges average only the available pixels.| Modifier and Type | Method and Description |
|---|---|
static int |
downHeight(int height)
Downsampled height for a given source height.
|
static Object |
downsample(Object pixels,
int width,
int height,
PixelType type)
Downsample a single plane by 2×2 averaging.
|
static int |
downWidth(int width)
Downsampled width for a given source width.
|
public static int downWidth(int width)
public static int downHeight(int height)
public static Object downsample(Object pixels, int width, int height, PixelType type)
pixels - row-major primitive array of width*height elementswidth - source widthheight - source heighttype - pixel typedownWidth(width)*downHeight(height) elementsCopyright © 2026. All rights reserved.