| java.lang.Object javax.media.jai.PlanarImage javax.media.jai.OpImage javax.media.jai.PointOpImage ca.forklabs.media.jai.opimage.MedianCollectionOpImage
Inner Class :abstract protected static class PixelSpecialization | |
Field Summary | |
protected static PixelSpecialization<byte[]> | BYTE_SPECIALIZATION Specialization for data of type byte. | protected static PixelSpecialization<double[]> | DOUBLE_SPECIALIZATION Specialization for data of type double. | protected static PixelSpecialization<float[]> | FLOAT_SPECIALIZATION Specialization for data of type float. | protected static PixelSpecialization<int[]> | INT_SPECIALIZATION Specialization for data of type int. | protected static PixelSpecialization<short[]> | SHORT_SPECIALIZATION Specialization for data of type short. |
Method Summary | |
protected A[][] | buildAllSourceData(RasterAccessor[] sources, PixelSpecialization<A> specialization) Builds the 3-dimensional source matrix.
< Parameters: A - > the type of pixels. Parameters: sources - the source rasters. Parameters: specialization - the specialization for the type of pixels. | protected RasterAccessor | buildRasterAccessor(Raster raster, RasterFormatTag tag, Rectangle bounds, ColorModel color_model) Builds a raster accessor for rasters associated with this operation.
Parameters: raster - the raster the accessor is for. Parameters: tag - the format tag for the raster. Parameters: bounds - the bounds. Parameters: color_model - the color model. | protected RasterAccessor | buildSinkRasterAccessor(WritableRaster raster, Rectangle bounds) Builds a raster accessor for the sink image.
Parameters: raster - the raster of the sink image. Parameters: bounds - the bounds. | protected RasterAccessor | buildSourceRasterAccessor(Raster raster, Rectangle bounds, int index) Builds the raster accessor for the source image at the given index.
Parameters: raster - the source raster. Parameters: bounds - the bounds on the sink image. Parameters: index - the index of the source image. | protected RasterAccessor[] | buildSourceRasterAccessors(Raster[] rasters, Rectangle bounds) Builds all the source raster accessors.
Parameters: rasters - the source rasters. Parameters: bounds - the bounds. | protected double | computeMedian(double[] values) Finds the median value.
Parameters: values - the population to find the median in. | protected void | computeMedian(RasterAccessor[] sources, RasterAccessor sink, PixelSpecialization<A> specialization) Computes the median of the source images. | protected void | computeMedian(RasterAccessor[] sources, RasterAccessor sink) Computes the median image. | protected void | computeMedianByte(RasterAccessor[] sources, RasterAccessor sink) Compute the median image for images with bytes as the data type. | protected void | computeMedianDouble(RasterAccessor[] sources, RasterAccessor sink) Compute the median image for images with doubles as the data type. | protected void | computeMedianFloat(RasterAccessor[] sources, RasterAccessor sink) Compute the median image for images with floats as the data type. | protected void | computeMedianInt(RasterAccessor[] sources, RasterAccessor sink) Compute the median image for images with integers as the data type. | protected void | computeMedianShort(RasterAccessor[] sources, RasterAccessor sink) Compute the median image for images with shorts as the data type. | protected void | computeRect(Raster[] sources, WritableRaster sink, Rectangle bounds) Calculates the median of the corresponding pixels of the source images
within a specified rectangle. | protected RasterFormatTag | getFormatTag(int index) Gets the raster format tag for the image at the given index.
Parameters: index - the index of the image. | protected RasterFormatTag | getSinkFormatTag() Gets the raster format tag for the sink image. | protected RasterFormatTag | getSourceFormatTag(int index) Gets the raster format tag for the given source image.
Parameters: index - the index of the source image. | protected String | getUnknownDataTypeErrorMessage(int type) Gets the error message telling that the raster data type is unknown.
Parameters: type - the bad type. | protected void | incrementLineOffsets(int[] line_offsets, int[] line_strides) Increments the line offsets by their corresponding line strides. | protected void | incrementPixelOffsets(int[] pixel_offsets, int[] pixel_strides) Increments the pixel offsets by their corresponding pixel strides. | protected void | resetLineOffsets(int band, int[][] band_offsets, int[] line_offsets) Resets the line offsets by setting them to their corresponding band
offset. | protected void | resetPixelOffsets(int[] line_offsets, int[] pixel_offsets) Resets the pixel offsets by setting them to their corresponding line
offset. |
BYTE_SPECIALIZATION | protected static PixelSpecialization<byte[]> BYTE_SPECIALIZATION(Code) | | Specialization for data of type byte.
|
DOUBLE_SPECIALIZATION | protected static PixelSpecialization<double[]> DOUBLE_SPECIALIZATION(Code) | | Specialization for data of type double.
|
FLOAT_SPECIALIZATION | protected static PixelSpecialization<float[]> FLOAT_SPECIALIZATION(Code) | | Specialization for data of type float.
|
INT_SPECIALIZATION | protected static PixelSpecialization<int[]> INT_SPECIALIZATION(Code) | | Specialization for data of type int.
|
SHORT_SPECIALIZATION | protected static PixelSpecialization<short[]> SHORT_SPECIALIZATION(Code) | | Specialization for data of type short.
|
MedianCollectionOpImage | public MedianCollectionOpImage(CollectionImage sources, Map, ?> config, ImageLayout layout)(Code) | | Constructor.
Parameters: sources - the collection of rendered images. Parameters: config - the rendering hints. Parameters: layout - the image layout. |
buildAllSourceData | protected A[][] buildAllSourceData(RasterAccessor[] sources, PixelSpecialization<A> specialization)(Code) | | Builds the 3-dimensional source matrix.
< Parameters: A - > the type of pixels. Parameters: sources - the source rasters. Parameters: specialization - the specialization for the type of pixels. the 3-dimensional source matrix. |
buildRasterAccessor | protected RasterAccessor buildRasterAccessor(Raster raster, RasterFormatTag tag, Rectangle bounds, ColorModel color_model)(Code) | | Builds a raster accessor for rasters associated with this operation.
Parameters: raster - the raster the accessor is for. Parameters: tag - the format tag for the raster. Parameters: bounds - the bounds. Parameters: color_model - the color model. the raster accessor. |
buildSinkRasterAccessor | protected RasterAccessor buildSinkRasterAccessor(WritableRaster raster, Rectangle bounds)(Code) | | Builds a raster accessor for the sink image.
Parameters: raster - the raster of the sink image. Parameters: bounds - the bounds. the raster accessor. |
buildSourceRasterAccessor | protected RasterAccessor buildSourceRasterAccessor(Raster raster, Rectangle bounds, int index)(Code) | | Builds the raster accessor for the source image at the given index.
Parameters: raster - the source raster. Parameters: bounds - the bounds on the sink image. Parameters: index - the index of the source image. the raster accessor. |
buildSourceRasterAccessors | protected RasterAccessor[] buildSourceRasterAccessors(Raster[] rasters, Rectangle bounds)(Code) | | Builds all the source raster accessors.
Parameters: rasters - the source rasters. Parameters: bounds - the bounds. the raster accessors. |
computeMedian | protected double computeMedian(double[] values)(Code) | | Finds the median value.
Parameters: values - the population to find the median in. the median. exception: ArithmeticException - if the population size is 0. |
computeMedian | protected void computeMedian(RasterAccessor[] sources, RasterAccessor sink, PixelSpecialization<A> specialization)(Code) | | Computes the median of the source images.
< Parameters: A - > the type of pixels. Parameters: sources - the source rasters. Parameters: sink - the sink raster. Parameters: specialization - the specialization for the type of pixels. |
computeMedian | protected void computeMedian(RasterAccessor[] sources, RasterAccessor sink)(Code) | | Computes the median image.
Parameters: sources - the source image. Parameters: sink - the median image. |
computeMedianByte | protected void computeMedianByte(RasterAccessor[] sources, RasterAccessor sink)(Code) | | Compute the median image for images with bytes as the data type.
Parameters: sources - the source images. Parameters: sink - the sink image. |
computeMedianDouble | protected void computeMedianDouble(RasterAccessor[] sources, RasterAccessor sink)(Code) | | Compute the median image for images with doubles as the data type.
Parameters: sources - the source images. Parameters: sink - the sink image. |
computeMedianFloat | protected void computeMedianFloat(RasterAccessor[] sources, RasterAccessor sink)(Code) | | Compute the median image for images with floats as the data type.
Parameters: sources - the source images. Parameters: sink - the sink image. |
computeMedianInt | protected void computeMedianInt(RasterAccessor[] sources, RasterAccessor sink)(Code) | | Compute the median image for images with integers as the data type.
Parameters: sources - the source images. Parameters: sink - the sink image. |
computeMedianShort | protected void computeMedianShort(RasterAccessor[] sources, RasterAccessor sink)(Code) | | Compute the median image for images with shorts as the data type.
Parameters: sources - the source images. Parameters: sink - the sink image. |
computeRect | protected void computeRect(Raster[] sources, WritableRaster sink, Rectangle bounds)(Code) | | Calculates the median of the corresponding pixels of the source images
within a specified rectangle.
Parameters: sources - the cobbled sources. Parameters: sink - the raster for each calculation. Parameters: bounds - the region of interest. |
getFormatTag | protected RasterFormatTag getFormatTag(int index)(Code) | | Gets the raster format tag for the image at the given index.
Parameters: index - the index of the image. the raster format tag. |
getSinkFormatTag | protected RasterFormatTag getSinkFormatTag()(Code) | | Gets the raster format tag for the sink image.
the raster format tag. |
getSourceFormatTag | protected RasterFormatTag getSourceFormatTag(int index)(Code) | | Gets the raster format tag for the given source image.
Parameters: index - the index of the source image. the raster format tag. |
getUnknownDataTypeErrorMessage | protected String getUnknownDataTypeErrorMessage(int type)(Code) | | Gets the error message telling that the raster data type is unknown.
Parameters: type - the bad type. the formatted error message. |
incrementLineOffsets | protected void incrementLineOffsets(int[] line_offsets, int[] line_strides)(Code) | | Increments the line offsets by their corresponding line strides.
Parameters: line_offsets - the line offsets. Parameters: line_strides - the line strides. |
incrementPixelOffsets | protected void incrementPixelOffsets(int[] pixel_offsets, int[] pixel_strides)(Code) | | Increments the pixel offsets by their corresponding pixel strides.
Parameters: pixel_offsets - the pixel offsets. Parameters: pixel_strides - the pixel strides. |
resetLineOffsets | protected void resetLineOffsets(int band, int[][] band_offsets, int[] line_offsets)(Code) | | Resets the line offsets by setting them to their corresponding band
offset.
Parameters: band - the current band. Parameters: band_offsets - the band offsets. Parameters: line_offsets - the line offsets. |
resetPixelOffsets | protected void resetPixelOffsets(int[] line_offsets, int[] pixel_offsets)(Code) | | Resets the pixel offsets by setting them to their corresponding line
offset.
Parameters: line_offsets - the line offsets. Parameters: pixel_offsets - the pixel offsets. |
Methods inherited from javax.media.jai.OpImage | protected void addTileToCache(int tileX, int tileY, Raster tile)(Code)(Java Doc) public void cancelTiles(TileRequest request, Point[] tileIndices)(Code)(Java Doc) protected void computeRect(Raster[] sources, WritableRaster dest, Rectangle destRect)(Code)(Java Doc) protected void computeRect(PlanarImage[] sources, WritableRaster dest, Rectangle destRect)(Code)(Java Doc) public Raster computeTile(int tileX, int tileY)(Code)(Java Doc) public boolean computesUniqueTiles()(Code)(Java Doc) final protected WritableRaster createTile(int tileX, int tileY)(Code)(Java Doc) public synchronized void dispose()(Code)(Java Doc) public static int getExpandedNumBands(SampleModel sampleModel, ColorModel colorModel)(Code)(Java Doc) protected synchronized RasterFormatTag[] getFormatTags()(Code)(Java Doc) public int getOperationComputeType()(Code)(Java Doc) public Raster getTile(int tileX, int tileY)(Code)(Java Doc) public TileCache getTileCache()(Code)(Java Doc) public Object getTileCacheMetric()(Code)(Java Doc) public Point[] getTileDependencies(int tileX, int tileY, int sourceIndex)(Code)(Java Doc) protected Raster getTileFromCache(int tileX, int tileY)(Code)(Java Doc) public TileRecycler getTileRecycler()(Code)(Java Doc) public Raster[] getTiles(Point[] tileIndices)(Code)(Java Doc) public boolean hasExtender(int sourceIndex)(Code)(Java Doc) public Point2D mapDestPoint(Point2D destPt, int sourceIndex)(Code)(Java Doc) abstract public Rectangle mapDestRect(Rectangle destRect, int sourceIndex)(Code)(Java Doc) public Point2D mapSourcePoint(Point2D sourcePt, int sourceIndex)(Code)(Java Doc) abstract public Rectangle mapSourceRect(Rectangle sourceRect, int sourceIndex)(Code)(Java Doc) public void prefetchTiles(Point[] tileIndices)(Code)(Java Doc) public TileRequest queueTiles(Point[] tileIndices)(Code)(Java Doc) protected void recycleTile(Raster tile)(Code)(Java Doc) public void setTileCache(TileCache cache)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image1, RenderedImage image2)(Code)(Java Doc) protected static Vector vectorize(RenderedImage image1, RenderedImage image2, RenderedImage image3)(Code)(Java Doc)
|
Methods inherited from javax.media.jai.PlanarImage | public static int XToTileX(int x, int tileGridXOffset, int tileWidth)(Code)(Java Doc) public int XToTileX(int x)(Code)(Java Doc) public static int YToTileY(int y, int tileGridYOffset, int tileHeight)(Code)(Java Doc) public int YToTileY(int y)(Code)(Java Doc) public void addPropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public synchronized boolean addSink(Object sink)(Code)(Java Doc) protected void addSink(PlanarImage sink)(Code)(Java Doc) protected void addSource(Object source)(Code)(Java Doc) public synchronized void addTileComputationListener(TileComputationListener listener)(Code)(Java Doc) public void cancelTiles(TileRequest request, Point[] tileIndices)(Code)(Java Doc) public WritableRaster copyData()(Code)(Java Doc) public WritableRaster copyData(WritableRaster raster)(Code)(Java Doc) public void copyExtendedData(WritableRaster dest, BorderExtender extender)(Code)(Java Doc) public static ColorModel createColorModel(SampleModel sm)(Code)(Java Doc) public PlanarImage createSnapshot()(Code)(Java Doc) final protected WritableRaster createWritableRaster(SampleModel sampleModel, Point location)(Code)(Java Doc) public synchronized void dispose()(Code)(Java Doc) protected void finalize() throws Throwable(Code)(Java Doc) public BufferedImage getAsBufferedImage(Rectangle rect, ColorModel cm)(Code)(Java Doc) public BufferedImage getAsBufferedImage()(Code)(Java Doc) public Rectangle getBounds()(Code)(Java Doc) public ColorModel getColorModel()(Code)(Java Doc) public Raster getData()(Code)(Java Doc) public Raster getData(Rectangle region)(Code)(Java Doc) public static ColorModel getDefaultColorModel(int dataType, int numBands)(Code)(Java Doc) public Raster getExtendedData(Rectangle region, BorderExtender extender)(Code)(Java Doc) public Graphics getGraphics()(Code)(Java Doc) public int getHeight()(Code)(Java Doc) public Object getImageID()(Code)(Java Doc) public int getMaxTileX()(Code)(Java Doc) public int getMaxTileY()(Code)(Java Doc) public int getMaxX()(Code)(Java Doc) public int getMaxY()(Code)(Java Doc) public int getMinTileX()(Code)(Java Doc) public int getMinTileY()(Code)(Java Doc) public int getMinX()(Code)(Java Doc) public int getMinY()(Code)(Java Doc) public int getNumBands()(Code)(Java Doc) public int getNumSources()(Code)(Java Doc) public int getNumXTiles()(Code)(Java Doc) public int getNumYTiles()(Code)(Java Doc) protected Hashtable getProperties()(Code)(Java Doc) public Object getProperty(String name)(Code)(Java Doc) public Class getPropertyClass(String name)(Code)(Java Doc) public String[] getPropertyNames()(Code)(Java Doc) public String[] getPropertyNames(String prefix)(Code)(Java Doc) public SampleModel getSampleModel()(Code)(Java Doc) public Vector getSinks()(Code)(Java Doc) public PlanarImage getSource(int index)(Code)(Java Doc) public PlanarImage getSourceImage(int index)(Code)(Java Doc) public Object getSourceObject(int index)(Code)(Java Doc) public Vector getSources()(Code)(Java Doc) public void getSplits(IntegerSequence xSplits, IntegerSequence ySplits, Rectangle rect)(Code)(Java Doc) abstract public Raster getTile(int tileX, int tileY)(Code)(Java Doc) public TileComputationListener[] getTileComputationListeners()(Code)(Java Doc) public TileFactory getTileFactory()(Code)(Java Doc) public int getTileGridXOffset()(Code)(Java Doc) public int getTileGridYOffset()(Code)(Java Doc) public int getTileHeight()(Code)(Java Doc) public Point[] getTileIndices(Rectangle region)(Code)(Java Doc) public Rectangle getTileRect(int tileX, int tileY)(Code)(Java Doc) public int getTileWidth()(Code)(Java Doc) public Raster[] getTiles(Point[] tileIndices)(Code)(Java Doc) public Raster[] getTiles()(Code)(Java Doc) public int getWidth()(Code)(Java Doc) public boolean overlapsMultipleTiles(Rectangle rect)(Code)(Java Doc) public void prefetchTiles(Point[] tileIndices)(Code)(Java Doc) public TileRequest queueTiles(Point[] tileIndices)(Code)(Java Doc) public void removeProperty(String name)(Code)(Java Doc) public void removePropertyChangeListener(PropertyChangeListener listener)(Code)(Java Doc) public void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)(Code)(Java Doc) public synchronized boolean removeSink(Object sink)(Code)(Java Doc) protected boolean removeSink(PlanarImage sink)(Code)(Java Doc) public void removeSinks()(Code)(Java Doc) protected boolean removeSource(Object source)(Code)(Java Doc) protected void removeSources()(Code)(Java Doc) public synchronized void removeTileComputationListener(TileComputationListener listener)(Code)(Java Doc) protected void setImageLayout(ImageLayout layout)(Code)(Java Doc) protected void setProperties(Hashtable properties)(Code)(Java Doc) public void setProperty(String name, Object value)(Code)(Java Doc) protected void setSource(Object source, int index)(Code)(Java Doc) protected void setSources(List sourceList)(Code)(Java Doc) public static int tileXToX(int tx, int tileGridXOffset, int tileWidth)(Code)(Java Doc) public int tileXToX(int tx)(Code)(Java Doc) public static int tileYToY(int ty, int tileGridYOffset, int tileHeight)(Code)(Java Doc) public int tileYToY(int ty)(Code)(Java Doc) public String toString()(Code)(Java Doc) public static PlanarImage wrapRenderedImage(RenderedImage image)(Code)(Java Doc)
|
|
|