public class FindRequiredBlocks extends Object
| Constructor and Description |
|---|
FindRequiredBlocks() |
| Modifier and Type | Method and Description |
|---|---|
static RequiredBlocks |
getRequiredBlocks(net.imglib2.algorithm.kdtree.ConvexPolytope clip,
int[] blockSize,
long[] gridMin,
long[] gridMax)
Given an interval split into regular blocks of size
blockSize. |
static RequiredBlocks |
getRequiredLevelBlocksFrustum(org.joml.Matrix4fc levelToNDC,
int[] blockSize,
long[] gridMin,
long[] gridMax)
Backproject NDC
(-1,-1,-1) ... (1,1,1) to source image and find overlapping blocks. |
static net.imglib2.algorithm.kdtree.ConvexPolytope |
scaleClippingPolytope(net.imglib2.algorithm.kdtree.ConvexPolytope clip,
int[] blockSize)
Creates a clipping polytope in grid space from
clip by scaling
with inverse blockSize. |
static net.imglib2.algorithm.kdtree.ConvexPolytope |
shrinkClippingPolytope(net.imglib2.algorithm.kdtree.ConvexPolytope clip,
int[] blockSize)
Creates a new clipping polytope by shifting the planes of
clip
such that we only have to check the (0, 0) corner of cells. |
public static net.imglib2.algorithm.kdtree.ConvexPolytope shrinkClippingPolytope(net.imglib2.algorithm.kdtree.ConvexPolytope clip, int[] blockSize)
clip
such that we only have to check the (0, 0) corner of cells.
(0, 0) is contained in the created polytope, if and only if the
block (-0.5, -0.5) .. (blockSize[0]-0.5, blockSize[1]-0.5)
overlaps the original clipping polytope clip.
Works for arbitrary number of dimensions.
clip - blockSize - public static net.imglib2.algorithm.kdtree.ConvexPolytope scaleClippingPolytope(net.imglib2.algorithm.kdtree.ConvexPolytope clip, int[] blockSize)
clip by scaling
with inverse blockSize.clip - blockSize - public static RequiredBlocks getRequiredBlocks(net.imglib2.algorithm.kdtree.ConvexPolytope clip, int[] blockSize, long[] gridMin, long[] gridMax)
blockSize.
Which blocks are contained in the specified clipping volume?clip - in voxel coordinatesblockSize - gridMin - gridMax - public static RequiredBlocks getRequiredLevelBlocksFrustum(org.joml.Matrix4fc levelToNDC, int[] blockSize, long[] gridMin, long[] gridMax)
(-1,-1,-1) ... (1,1,1) to source image and find overlapping blocks.levelToNDC - Projection * View * Model * Upscale matrixblockSize - gridMin - gridMax - Copyright © 2018–2025 BigDataViewer. All rights reserved.