Java Doc for IHSColorSpace.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » javax » media » 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 » 6.0 JDK Modules » Java Advanced Imaging » javax.media.jai 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


javax.media.jai.ColorSpaceJAI
   javax.media.jai.IHSColorSpace

IHSColorSpace
final public class IHSColorSpace extends ColorSpaceJAI (Code)
Singleton class representing the IHS (Intensity, Hue, Saturation) color space (also known as HSI or HIS).

The RGB-to-IHS transformation is defined by the equations:

  • I = (R+G+B)/3
  • S = 1-min(R, G, B)/I
  • H = G > B ? h : 2*PI - h, where
    h = cos-1{[(R-G)+(R-B)]/2[(R-G)2+ (R-G)(G-B)]1/2}
where the R, G, B values have been normalized to the range [0.0, 1.0]. Refer to Practical Algorithms for Image Analysis, Seul, et. al., (Cambridge, 2000), pages 50-55, for more information. The inverse transformation (IHS-to-RGB) is defined as:

When H is in [2PI/3, 4PI/3], R should be the smallest. Then, there exists

R = (1-S)I

and

  • G = (c1 + c2)/2
  • B = (c1 - c2)/2

where c1 = 3I-R and c2 = sqrt(3)(R-I)tg(H)

when H is in [4PI/3, 2PI],

G = (1-S)I

and

  • B = (c1 + c2)/2
  • R = (c1 - c2)/2

where c1 = 3I-G and c2 = sqrt(3)(G-I)tg(H-2PI/3)

when H is in [0, 2PI/3],

B = (1-S)I

and

  • R = (c1 + c2)/2
  • G = (c1 - c2)/2

where c1 = 3I-B and c2 = sqrt(3)(B-I)tg(H-4PI/3)

Methods defined in the superclasses are not commented extensively.
See Also:   ColorSpaceJAI
since:
   JAI 1.1




Constructor Summary
protected  IHSColorSpace()
     Constructs an instance of this class with type ColorSpace.TYPE_HSV, 3 components, and preferred intermediary space sRGB.

Method Summary
public  float[]fromCIEXYZ(float[] colorValue)
     Converts a single color value from CIEXYZ to IHS.
public  WritableRasterfromCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)
     Converts a Raster of colors represented as pixels from CIEXYZ to IHS.
public  float[]fromRGB(float[] rgbValue)
     Converts a single color value from sRGB to IHS.
public  WritableRasterfromRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)
     Converts a Raster of colors represented as pixels from sRGB to IHS.
public static  IHSColorSpacegetInstance()
     Retrieves the unique instance of this class the construction of which is deferred until the first invocation of this method.
public  float[]toCIEXYZ(float[] colorValue)
     Converts a single color value from IHS to CIEXYZ.
public  WritableRastertoCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)
     Converts a Raster of colors represented as pixels from IHS to CIEXYZ.
public  float[]toRGB(float[] colorValue)
     Converts a single color value from IHS to sRGB.
public  WritableRastertoRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)
     Converts a Raster of colors represented as pixels from IHS to sRGB.


Constructor Detail
IHSColorSpace
protected IHSColorSpace()(Code)
Constructs an instance of this class with type ColorSpace.TYPE_HSV, 3 components, and preferred intermediary space sRGB.




Method Detail
fromCIEXYZ
public float[] fromCIEXYZ(float[] colorValue)(Code)
Converts a single color value from CIEXYZ to IHS.



fromCIEXYZ
public WritableRaster fromCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)
Converts a Raster of colors represented as pixels from CIEXYZ to IHS.



fromRGB
public float[] fromRGB(float[] rgbValue)(Code)
Converts a single color value from sRGB to IHS.



fromRGB
public WritableRaster fromRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)
Converts a Raster of colors represented as pixels from sRGB to IHS.



getInstance
public static IHSColorSpace getInstance()(Code)
Retrieves the unique instance of this class the construction of which is deferred until the first invocation of this method.



toCIEXYZ
public float[] toCIEXYZ(float[] colorValue)(Code)
Converts a single color value from IHS to CIEXYZ.



toCIEXYZ
public WritableRaster toCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)
Converts a Raster of colors represented as pixels from IHS to CIEXYZ.



toRGB
public float[] toRGB(float[] colorValue)(Code)
Converts a single color value from IHS to sRGB.



toRGB
public WritableRaster toRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)
Converts a Raster of colors represented as pixels from IHS to sRGB.



Methods inherited from javax.media.jai.ColorSpaceJAI
public static WritableRaster CIEXYZToRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)(Java Doc)
static void CIEXYZToRGBByte(UnpackedImageData src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)(Java Doc)
static void RGB2XYZ(float[] RGB, float[] XYZ)(Code)(Java Doc)
public static WritableRaster RGBToCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)(Java Doc)
static void XYZ2RGB(float[] XYZ, float[] RGB)(Code)(Java Doc)
protected static void checkParameters(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)(Java Doc)
static void convertToSigned(double[] buf, int dataType)(Code)(Java Doc)
abstract public WritableRaster fromCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)(Java Doc)
abstract public WritableRaster fromRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)(Java Doc)
public boolean isRGBPreferredIntermediary()(Code)(Java Doc)
abstract public WritableRaster toCIEXYZ(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)(Java Doc)
abstract public WritableRaster toRGB(Raster src, int[] srcComponentSize, WritableRaster dest, int[] destComponentSize)(Code)(Java Doc)

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