Sha256: 98c62b6a4df1609d4ae173982ef6f64d50148b227c49a50f021dcc6825ba42df
Contents?: true
Size: 775 Bytes
Versions: 6
Compression:
Stored size: 775 Bytes
Contents
package org.sunflow.core; /** * Represents a multi-pixel image filter kernel. */ public interface Filter { /** * Width in pixels of the filter extents. The filter will be applied to the * range of pixels within a box of * <code>+/- getSize() / 2</code> around the center of the pixel. * * @return width in pixels */ public float getSize(); /** * Get value of the filter at offset (x, y). The filter should never be * called with values beyond its extents but should return 0 in those cases * anyway. * * @param x x offset in pixels * @param y y offset in pixels * @return value of the filter at the specified location */ public float get(float x, float y); }
Version data entries
6 entries across 6 versions & 1 rubygems