Java Doc for CBlkWTData.java in  » 6.0-JDK-Modules » Java-Advanced-Imaging » jj2000 » j2k » wavelet » analysis » 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 » jj2000.j2k.wavelet.analysis 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   jj2000.j2k.wavelet.analysis.CBlkWTData

All known Subclasses:   jj2000.j2k.wavelet.analysis.CBlkWTDataFloat,  jj2000.j2k.wavelet.analysis.CBlkWTDataInt,
CBlkWTData
abstract public class CBlkWTData (Code)
This is a generic abstract class to store a code-block of wavelet data, be it quantized or not. This class does not have the notion of components. Therefore, it should be used for data from a single component. Subclasses should implement the different types of storage (int, float, etc.).

The data is always stored in one array, of the type matching the data type (i.e. for 'int' it's an 'int[]'). The data should be stored in the array in standard scan-line order. That is the samples go from the top-left corner of the code-block to the lower-right corner by line and then column.

The member variable 'offset' gives the index in the array of the first data element (i.e. the top-left coefficient). The member variable 'scanw' gives the width of the scan that is used to store the data, that can be different from the width of the block. Element '(x,y)' of the code-block (i.e. '(0,0)' is the top-left coefficient), will appear at position 'offset+y*scanw+x' in the array of data.

The classes CBlkWTDataInt and CBlkWTDataFloat provide implementations for int and float types respectively.

The types of data are the same as those defined by the 'DataBlk' class.
See Also:   CBlkWTDataSrc
See Also:   jj2000.j2k.quantization.quantizer.CBlkQuantDataSrcEnc
See Also:   DataBlk
See Also:   CBlkWTDataInt
See Also:   CBlkWTDataFloat



Field Summary
public  doubleconvertFactor
     The value by which the absolute value of the data has to be divided in order to get the real absolute value.
public  inth
    
public  intm
    
public  intmagbits
     The number of magnitude bits in the integer representation.
public  intn
    
public  intnROIbp
    
public  intnROIcoeff
    
public  intoffset
    
public  SubbandAnsb
    
public  intscanw
    
public  doublestepSize
     The quantization step size of the code-block.
public  intulx
    
public  intuly
    
public  intw
    
public  floatwmseScaling
     The WMSE scaling factor (multiplicative) to apply to the distortion measures of the data of this code-block.


Method Summary
abstract public  ObjectgetData()
     Returns the array containing the data, or null if there is no data.
abstract public  intgetDataType()
     Returns the data type of the CBlkWTData object, as defined in the DataBlk class.
abstract public  voidsetData(Object arr)
     Sets the data array to the specified one.
public  StringtoString()
    

Field Detail
convertFactor
public double convertFactor(Code)
The value by which the absolute value of the data has to be divided in order to get the real absolute value. This value is useful to obtain the complement of 2 representation of a coefficient that is currently using the sign-magnitude representation.



h
public int h(Code)
The height of the code-block



m
public int m(Code)
The vertical index of the code-block, within the subband



magbits
public int magbits(Code)
The number of magnitude bits in the integer representation. This is only used for quantized wavelet data.



n
public int n(Code)
The horizontal index of the code-block, within the subband



nROIbp
public int nROIbp(Code)
Number of ROI magnitude bit-planes



nROIcoeff
public int nROIcoeff(Code)
Number of ROI coefficients in the code-block



offset
public int offset(Code)
The offset in the array of the top-left coefficient



sb
public SubbandAn sb(Code)
The subband in which this code-block is found



scanw
public int scanw(Code)
The width of the scanlines used to store the data in the array



stepSize
public double stepSize(Code)
The quantization step size of the code-block. The value is updated by the quantizer module



ulx
public int ulx(Code)
The horizontal coordinate of the upper-left corner of the code-block



uly
public int uly(Code)
The vertical coordinate of the upper left corner of the code-block



w
public int w(Code)
The width of the code-block



wmseScaling
public float wmseScaling(Code)
The WMSE scaling factor (multiplicative) to apply to the distortion measures of the data of this code-block. By default it is 1.





Method Detail
getData
abstract public Object getData()(Code)
Returns the array containing the data, or null if there is no data. The returned array is of the type returned by getDataType() (e.g., for TYPE_INT, it is a int[]).

Each implementing class should provide a type specific equivalent method (e.g., getDataInt() in DataBlkInt) which returns an array of the correct type explicitely and not through an Object. The array containing the data, or null if there is nodata.
See Also:   CBlkWTData.getDataType




getDataType
abstract public int getDataType()(Code)
Returns the data type of the CBlkWTData object, as defined in the DataBlk class. The data type of the object, as defined in the DataBlk class.
See Also:   DataBlk



setData
abstract public void setData(Object arr)(Code)
Sets the data array to the specified one. The type of the specified data array must match the one returned by getDataType() (e.g., for TYPE_INT, it should be a int[]). If the wrong type of array is given a ClassCastException will be thrown.

The size of the array is not necessarily checked for consistency with w and h or any other fields.

Each implementing class should provide a type specific equivalent method (e.g., setDataInt() in DataBlkInt) which takes an array of the correct type explicetely and not through an Object.
Parameters:
  arr - The new data array to use
See Also:   CBlkWTData.getDataType




toString
public String toString()(Code)
Returns a string of informations about the DataBlk Block dimensions and progressiveness in a string



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.