Class SamplingProjector2D<A,B>

Type Parameters:
A - source type
B - target type
All Implemented Interfaces:
Projector, EuclideanSpace, Localizable, Positionable, RealLocalizable

public class SamplingProjector2D<A,B> extends AbstractProjector2D
A general 2D Projector that uses three dimensions as input to create the 2D result. Starting from the reference point (see AbstractProjector2D) two dimensions are sampled such that a plain gets cut out of a higher dimensional data volume. The third dimension is projected (in a mathematical sense) onto this plain.
The mapping function is specified by a Converter. It is not necessary to process the complete interval of the third dimension, instead ProjectedSampler can be used to control the sampling.
A basic example is cutting out the x,y plain and projecting the color dimension onto the plain. Alternatively mapping up to three measures (from a measurement dimension) to the three color channels would also be possible...
Author:
Michael Zinsmaier, Martin Horn, Christian Dietz
  • Field Details

  • Constructor Details

    • SamplingProjector2D

      public SamplingProjector2D(int dimX, int dimY, RandomAccessible<A> source, IterableInterval<B> target, Converter<ProjectedSampler<A>,B> converter, int projectedDimension, long[] projectedPositions)
      Parameters:
      dimX - the x dimension of the created plain
      dimY - the y dimension of the created plain
      source -
      target -
      converter - a special converter that uses ProjectedSampler to process values from the third dimension (multiple values selected by the ProjectedDimSampler get converted to a new value in the resulting 2D dataset e.g. color channel to int color)
      projectedDimension - selection of the third dimension
      projectedPositions -
    • SamplingProjector2D

      public SamplingProjector2D(int dimX, int dimY, RandomAccessibleInterval<A> source, IterableInterval<B> target, Converter<ProjectedSampler<A>,B> converter, int projectedDimension)
  • Method Details

    • map

      public void map()