01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2006, Geotools Project Managment Committee (PMC)
05: * (C) 2006, Institut de Recherche pour le Développement
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation; either
10: * version 2.1 of the License, or (at your option) any later version.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: */
17: package org.geotools.coverage.processing.operation;
18:
19: // JAI dependencies (for javadoc)
20: import javax.media.jai.operator.MinFilterDescriptor;
21: import javax.media.jai.operator.MinFilterShape;
22:
23: // Geotools dependencies
24: import org.geotools.coverage.processing.OperationJAI;
25:
26: /**
27: * For each position of the mask, replaces the center pixel by the minimum of the pixel
28: * values covered by the mask.
29: *
30: * <P><STRONG>Name:</STRONG> <CODE>"MinFilter"</CODE><BR>
31: * <STRONG>JAI operator:</STRONG> <CODE>"{@linkplain MinFilterDescriptor MinFilter}"</CODE><BR>
32: * <STRONG>Parameters:</STRONG></P>
33: * <table border='3' cellpadding='6' bgcolor='F4F8FF'>
34: * <tr bgcolor='#B9DCFF'>
35: * <th>Name</th>
36: * <th>Class</th>
37: * <th>Default value</th>
38: * <th>Minimum value</th>
39: * <th>Maximum value</th>
40: * </tr>
41: * <tr>
42: * <td>{@code "Source"}</td>
43: * <td>{@link org.geotools.coverage.grid.GridCoverage2D}</td>
44: * <td align="center">N/A</td>
45: * <td align="center">N/A</td>
46: * <td align="center">N/A</td>
47: * </tr>
48: * <tr>
49: * <td>{@code "maskShape"}</td>
50: * <td>{@link MinFilterShape}</td>
51: * <td>{@link MinFilterDescriptor#MIN_MASK_SQUARE}</td>
52: * <td align="center">N/A</td>
53: * <td align="center">N/A</td>
54: * </tr>
55: * <tr>
56: * <td>{@code "maskSize"}</td>
57: * <td>{@link Integer}</td>
58: * <td>{@code 3}</td>
59: * <td align="center">N/A</td>
60: * <td align="center">N/A</td>
61: * </tr>
62: * </table>
63: *
64: * @since 2.3
65: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/library/coverage/src/main/java/org/geotools/coverage/processing/operation/MinFilter.java $
66: * @version $Id: MinFilter.java 20970 2006-08-11 07:53:22Z jgarnett $
67: * @author Martin Desruisseaux
68: */
69: public class MinFilter extends OperationJAI {
70: /**
71: * Serial number for interoperability with different versions.
72: */
73: private static final long serialVersionUID = -45487721305059086L;
74:
75: /**
76: * Constructs a default {@code "MinFilter"} operation.
77: */
78: public MinFilter() {
79: super ("MinFilter");
80: }
81: }
|