org.geotools.coverage.processing

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » GIS » GeoTools 2.4.1 » org.geotools.coverage.processing 
org.geotools.coverage.processing
package org.geotools.coverage.processing {@linkplain org.geotools.coverage.processing.DefaultProcessor Coverage processing} implementations. An explanation for this package is provided in the {@linkplain org.opengis.coverage.processing OpenGIS® javadoc}. The remaining discussion on this page is specific to the Geotools implementation.

If the operation to apply is know at compile time, then the easiest way to use this package is to use the {@link org.geotools.coverage.processing.Operations} convenience class. For example a {@linkplain org.opengis.coverage.grid.GridCoverage grid coverage} can be resampled to a different {@linkplain org.opengis.referencing.crs.CoordinateReferenceSystem coordinate reference system} using the following code:

Coverage reprojected = Operations.DEFAULT.{@linkplain org.geotools.coverage.processing.Operations#resample resample}(myCoverage, newCRS);

If the operation to apply is unknow at compile time (for example because it is selected at runtime by the user in some widget), or if the operation is not listed in the {@code Operations} convenience class, then the generic way is to invoke the {@link org.geotools.coverage.processing.DefaultProcessor#doOperation doOperation} method on the {@linkplain org.geotools.coverage.processing.AbstractProcessor#getInstance default processor instance}. Available operations are listed in the {@linkplain org.geotools.coverage.processing.operation operation package}.

Supported operations

 


 

Convolve

Computes each output sample by multiplying elements of a kernel with the samples surrounding a particular source sample.

Name: "Convolve"
JAI operator: "{@linkplain javax.media.jai.operator.ConvolveDescriptor Convolve}"
Parameters:

Name Class Default value Minimum value Maximum value
{@code "Source"} {@link org.geotools.coverage.grid.GridCoverage2D} N/A N/A N/A
{@code "kernel"} {@link javax.media.jai.KernelJAI} N/A N/A N/A

Back to summary

 


 

LaplaceType1Filter

Perform a laplacian filter operation on a grid coverage. This is a high pass filter which highlights the edges having positive and negative brightness slopes. This filter mulitples the co-efficients in the tabe below with the corresponding grid data value in the kernel window. The new grid value will be calculated as the sum of (grid value * co-efficient) for each kernel cell divised by 9.

0 -1 0
-1 4 -1
0 -1 0

Name: "LaplaceType1Filter"
JAI operator: "{@linkplain javax.media.jai.operator.ConvolveDescriptor Convolve}"
Parameters:

Name Class Default value Minimum value Maximum value
{@code "Source"} {@link org.geotools.coverage.grid.GridCoverage2D} N/A N/A N/A

Back to summary

 


 

LaplaceType2Filter

Perform a laplacian filter operation on a grid coverage. This is a high pass filter which highlights the edges having positive and negative brightness slopes. This filter mulitples the co-efficients in the tabe below with the corresponding grid data value in the kernel window. The new grid value will be calculated as the sum of (grid value * co-efficient) for each kernel cell divised by 9.

-1 -1 -1
-1 8 -1
-1 -1 -1

Name: "LaplaceType1Filter"
JAI operator: "{@linkplain javax.media.jai.operator.ConvolveDescriptor Convolve}"
Parameters:

Name Class Default value Minimum value Maximum value
{@code "Source"} {@link org.geotools.coverage.grid.GridCoverage2D} N/A N/A N/A

Back to summary

 


 

MaxFilter

Non-linear filter which is useful for removing isolated lines or pixels while preserving the overall appearance of an image. The filter is implemented by moving a mask over the image. For each position of the mask, the center pixel is replaced by the max of the pixel values covered by the mask. There are several shapes possible for the mask, which are enumerated in the {@linkplain javax.media.jai.operator.MaxFilterDescriptor JAI documentation}.

Name: "MaxFilter"
JAI operator: "{@linkplain javax.media.jai.operator.MaxFilterDescriptor MaxFilter}"
Parameters:

Name Class Default value Minimum value Maximum value
{@code "Source"} {@link org.geotools.coverage.grid.GridCoverage2D} N/A N/A N/A
{@code "Xsize"} {@link java.lang.Integer} 3 1 N/A
{@code "Ysize"} {@link java.lang.Integer} 3 1 N/A
{@code "maskShape"} {@link javax.media.jai.operator.MaxFilterShape} {@link javax.media.jai.operator.MaxFilterDescriptor#MAX_MASK_SQUARE} N/A N/A

Note: In current implementation, Xsize and Ysize must have the same value (i.e. rectangular shapes are not supported).

Back to summary

 


 

MedianFilter

Non-linear filter which is useful for removing isolated lines or pixels while preserving the overall appearance of an image. The filter is implemented by moving a mask over the image. For each position of the mask, the center pixel is replaced by the median of the pixel values covered by the mask. This filter results in a smoothing of the image values. There are several shapes possible for the mask, which are enumerated in the {@linkplain javax.media.jai.operator.MedianFilterDescriptor JAI documentation}.

Name: "MedianFilter"
JAI operator: "{@linkplain javax.media.jai.operator.MedianFilterDescriptor MedianFilter}"
Parameters:

Name Class Default value Minimum value Maximum value
{@code "Source"} {@link org.geotools.coverage.grid.GridCoverage2D} N/A N/A N/A
{@code "Xsize"} {@link java.lang.Integer} 3 1 N/A
{@code "Ysize"} {@link java.lang.Integer} 3 1 N/A
{@code "maskShape"} {@link javax.media.jai.operator.MedianFilterShape} {@link javax.media.jai.operator.MedianFilterDescriptor#MEDIAN_MASK_SQUARE} N/A N/A

Note: In current implementation, Xsize and Ysize must have the same value (i.e. rectangular shapes are not supported).

Back to summary

 


 

MinFilter

Non-linear filter which is useful for removing isolated lines or pixels while preserving the overall appearance of an image. The filter is implemented by moving a mask over the image. For each position of the mask, the center pixel is replaced by the min of the pixel values covered by the mask. There are several shapes possible for the mask, which are enumerated in the {@linkplain javax.media.jai.operator.MinFilterDescriptor JAI documentation}.

Name: "MinFilter"
JAI operator: "{@linkplain javax.media.jai.operator.MinFilterDescriptor MinFilter}"
Parameters:

Name Class Default value Minimum value Maximum value
{@code "Source"} {@link org.geotools.coverage.grid.GridCoverage2D} N/A N/A N/A
{@code "Xsize"} {@link java.lang.Integer} 3 1 N/A
{@code "Ysize"} {@link java.lang.Integer} 3 1 N/A
{@code "maskShape"} {@link javax.media.jai.operator.MinFilterShape} {@link javax.media.jai.operator.MinFilterDescriptor#MIN_MASK_SQUARE} N/A N/A

Note: In current implementation, Xsize and Ysize must have the same value (i.e. rectangular shapes are not supported).

Back to summary

 


 

Recolor

Changes the colors associated to arbitrary {@linkplain org.geotools.coverage.Category categories} in arbitrary bands. The ColorMaps arguments must be an array of {@link java.util.Map}s with a minimal length of 1. The Map in array element 0 is used for band 0; the Map in array element 1 is used for band 1, etc. If there is more bands than array elements in ColorMaps, then the last Map is reused for all remaining bands.

For each {@link java.util.Map} in ColorMaps, the keys are category names as {@link java.lang.String} and the values are colors as an array of type {@linkplain java.awt.Color}[]. All categories with a name matching a key in the Map will be {@linkplain org.geotools.coverage.Category#recolor recolored} with the associated colors. All categories with no corresponding entries in the Map will be left unchanged. The null key is a special value meaning "any quantitative category". For example in order to repaint forest in green, river in blue and lets other categories unchanged, one can write:

    Map map = new HashMap();
    map.put("Forest", new Color[]{Color.GREEN});
    map.put("River",  new Color[]{Color.BLUE });
    Map[] colorMaps = new Map[] {
        map  // Use for all bands
    }
    

Name: "Recolor"
JAI operator: N/A
Parameters:

Name Class Default value Minimum value Maximum value
{@code "Source"} {@link org.geotools.coverage.grid.GridCoverage2D} N/A N/A N/A
{@code "ColorMaps"} {@linkplain java.util.Map}[] A gray scale N/A N/A

Back to summary

 


 

Threshold

A gray scale threshold classifies the grid coverage values into a boolean value. The sample dimensions will be modified into a boolean value and the dimension type of the source sample dimension will be represented as 1 bit.

Name: "Threshold"
JAI operator: "{@linkplain javax.media.jai.operator.BinarizeDescriptor Binarize}"
Parameters:

Name Class Default value Minimum value Maximum value
{@code "Source"} {@link org.geotools.coverage.grid.GridCoverage2D} N/A N/A N/A
{@code "threshold"} {@code double[]} N/A N/A N/A

Back to summary

Java Source File NameTypeComment
AbstractOperation.javaClass Provides descriptive information for a processing operation.
AbstractProcessor.javaClass Base class for processor implementations.
AbstractStatisticsOperationJAI.javaClass This class is the root class for the Statistics operations based on JAI 's StatisticsOpImage like Extrema and Histogram.
BilevelOperation.javaClass Wraps any JAI operation producing a bilevel image.
BufferedProcessor.javaClass A coverage processor caching the result of any operations.
CachedOperation.javaClass An Operation - ParameterValueGroup pair, used by DefaultOperation.doOperation for caching the result of operations.
CannotCropException.javaClass Throws when a "crop" operation has been requested but the specified grid coverage can't be scaled.
CannotReprojectException.javaClass Throws when a "resample" operation has been requested but the specified grid coverage can't be reprojected.
CannotScaleException.javaClass Throws when a "scale" operation has been requested but the specified grid coverage can't be scaled.
ColorMap.javaClass Colors associated to categories.
ColorMapTest.javaClass Tests ColorMap .
CoverageParameterWriter.javaClass Format grid coverage operation parameters in a tabular format.
CoverageProcessingException.javaClass Throws when a coverage operation failed.
DefaultProcessor.javaClass Default implementation of a processor. This default implementation makes the following assumptions:

  • Operations are declared in the META-INF/services/org.opengis.coverage.processing.Operation file.
  • Operations are actually instances of AbstractOperation (note: this constraint may be relaxed in a future version after GeoAPI interfaces for grid coverage will be redesigned).
  • Most operations are backed by Java Advanced Imaging.

Note: This implementation do not caches produced coverages.

FilterOperation.javaClass Common super-class for filter operation.
Operation2D.javaClass An operation working on GridCoverage2D sources.
OperationJAI.javaClass Wraps a JAI's OperationDescriptor for interoperability with Java Advanced Imaging. This class help to leverage the rich set of JAI operators in an GeoAPI framework. OperationJAI inherits operation name and argument types from OperationDescriptor , except the source argument type (usually .class) which is set to .class.
Operations.javaClass Convenience, type-safe, methods for applying some common operations on objects.
RangeSpecifier.javaClass Argument type for DefaultProcessor operations for specifying the range, colors and units of a computation result.
StatisticsOperationsTest.javaClass Testing Extrema and Histogram operations.
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.