Java Doc for Combine.java in  » GIS » GeoTools-2.4.1 » org » geotools » image » jai » Java Source Code / Java DocumentationJava Source Code and Java Documentation

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.image.jai 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.geotools.image.jai.Combine

Combine
public class Combine extends PointOpImage (Code)
Computes a set of arbitrary linear combinations of the bands of many rendered source images, using a specified matrix. The matrix size ( numRows × numColumns ) must be equals to the following:

  • numRows : the number of desired destination bands.
  • numColumns : the total number of source bands (i.e. the sum of the number of source bands in all source images) plus one.

The number of source bands used to determine the matrix dimensions is given by the following code regardless of the type of ColorModel the sources have:

 int sourceBands = 0;
 for (int i=0; i
The extra column in the matrix contains constant values each of which is added to the respective band of the destination. The transformation is therefore defined by the pseudocode:
 // s = source pixel (not all from the same source image)
 // d = destination pixel
 for (int i=0; i
In the special case where there is only one source, this method is equivalent to JAI's " BandCombineDescriptor BandCombine " operation.
since:
   2.1
version:
   $Id: Combine.java 23211 2006-12-05 00:38:41Z desruisseaux $
author:
   Martin Desruisseaux
author:
   Remi Eve

Inner Class :final static class Dyadic extends Combine

Field Summary
final  int[][]bands
     The band to use for each elements in Combine.matrix .
final  double[][]matrix
     The linear combinaison coefficients as a matrix.
final  intnumSamples
     The number of source samples.
final  int[][]sources
     The source to use for each elements in Combine.matrix .
final protected  CombineTransformtransform
     The transform to apply on sample values before the linear combinaison, or null if none.

Constructor Summary
public  Combine(Vector images, double[][] matrix, CombineTransform transform, RenderingHints hints)
     Construct an image with the specified matrix.

Method Summary
public  voidcomputeRect(PlanarImage[] images, WritableRaster dest, Rectangle destRect)
     Compute one tile.

Field Detail
bands
final int[][] bands(Code)
The band to use for each elements in Combine.matrix . This matrix size must be the same than matrix .



matrix
final double[][] matrix(Code)
The linear combinaison coefficients as a matrix. This matrix may not be the same than the one specified to the constructor, in that the zero coefficients may have been purged (and Combine.sources and Combine.bands arrays adjusted accordingly}) for performance reason.



numSamples
final int numSamples(Code)
The number of source samples. This is the sum of the number of bands in all source images. Each Combine.matrix row must have this length plus 1.



sources
final int[][] sources(Code)
The source to use for each elements in Combine.matrix . This matrix size must be the same than matrix .



transform
final protected CombineTransform transform(Code)
The transform to apply on sample values before the linear combinaison, or null if none.




Constructor Detail
Combine
public Combine(Vector images, double[][] matrix, CombineTransform transform, RenderingHints hints) throws MismatchedSizeException(Code)
Construct an image with the specified matrix.
Parameters:
  images - The rendered sources.
Parameters:
  matrix - The linear combinaison coefficients as a matrix.
Parameters:
  transform - The transform to apply on sample values before the linear combinaison,or null if none.
Parameters:
  hints - The rendering hints.
throws:
  MismatchedSizeException - if some rows in the matrix argument doesn'thave the expected length.




Method Detail
computeRect
public void computeRect(PlanarImage[] images, WritableRaster dest, Rectangle destRect)(Code)
Compute one tile.
Parameters:
  images - An array of PlanarImage sources.
Parameters:
  dest - A WritableRaster to be filled in.
Parameters:
  destRect - The Rectangle within the destination to be written.



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.