/** * Test whether the given support is a centred block * * @param support * the support * @return true if block, false otherwise */ public final static boolean isBlockSupport(final Set<Pixel> support) { final int sw = getSupportWidth(support); final int sh = getSupportHeight(support); return sw * sh == support.size() && isCentred(support); }
/** * Test whether the given support is a centred block * * @param support * the support * @return true if block, false otherwise */ public final static boolean isBlockSupport(final Set<Pixel> support) { final int sw = getSupportWidth(support); final int sh = getSupportHeight(support); return sw * sh == support.size() && isCentred(support); }
/** * Construct with the given support region for selecting pixels to take the * median from. The support mask is a set of <code>n</code> relative x, y * offsets from the pixel currently being processed, and can be created * using the methods or constants in the {@link FilterSupport} class. * * @param support * the support coordinates */ public MinMaxAnalyser(Set<Pixel> support) { this.support = support; if (FilterSupport.isBlockSupport(support)) { blockWidth = FilterSupport.getSupportWidth(support); blockHeight = FilterSupport.getSupportHeight(support); } }
/** * Construct with the given support region for selecting pixels to take the * median from. The support mask is a set of <code>n</code> relative x, y * offsets from the pixel currently being processed, and can be created * using the methods or constants in the {@link FilterSupport} class. * * @param support * the support coordinates */ public MinFilter(Set<Pixel> support) { this.support = support; if (FilterSupport.isBlockSupport(support)) { blockWidth = FilterSupport.getSupportWidth(support); blockHeight = FilterSupport.getSupportHeight(support); } }
/** * Construct with the given support region for selecting pixels to take the * median from. The support mask is a set of <code>n</code> relative x, y * offsets from the pixel currently being processed, and can be created * using the methods or constants in the {@link FilterSupport} class. * * @param support * the support coordinates */ public MinMaxAnalyser(Set<Pixel> support) { this.support = support; if (FilterSupport.isBlockSupport(support)) { blockWidth = FilterSupport.getSupportWidth(support); blockHeight = FilterSupport.getSupportHeight(support); } }
/** * Construct with the given support region for selecting pixels to take the * median from. The support mask is a set of <code>n</code> relative x, y * offsets from the pixel currently being processed, and can be created * using the methods or constants in the {@link FilterSupport} class. * * @param support * the support coordinates */ public MinFilter(Set<Pixel> support) { this.support = support; if (FilterSupport.isBlockSupport(support)) { blockWidth = FilterSupport.getSupportWidth(support); blockHeight = FilterSupport.getSupportHeight(support); } }
/** * Construct with the given support region for selecting pixels to take the * median from. The support mask is a set of <code>n</code> relative x, y * offsets from the pixel currently being processed, and can be created * using the methods or constants in the {@link FilterSupport} class. * * @param support * the support coordinates */ public MaxFilter(Set<Pixel> support) { this.support = support; if (FilterSupport.isBlockSupport(support)) { blockWidth = FilterSupport.getSupportWidth(support); blockHeight = FilterSupport.getSupportHeight(support); } }
/** * Construct with the given support region for selecting pixels to take the * median from. The support mask is a set of <code>n</code> relative x, y * offsets from the pixel currently being processed, and can be created * using the methods or constants in the {@link FilterSupport} class. * * @param support * the support coordinates */ public MaxFilter(Set<Pixel> support) { this.support = support; if (FilterSupport.isBlockSupport(support)) { blockWidth = FilterSupport.getSupportWidth(support); blockHeight = FilterSupport.getSupportHeight(support); } }