ONLINE IMAGE PROCESSING BASED ON APPLET AND JAI (DEVELOPMENT AND APPLICATION) BY Y.SAHITYA SINDHU BTECH INFORMATION & COMMUNICATION TECHNOLOGY 9524159079 sin.sin.1991@gmail.com sahityasindhu@ict.sastra.edu SASTRA UNIVERSITY Online image processing based on APPLET and JAI (development and application) AbstractThis article is all about the web based online image processing software architecture making use of the advance image processing of the java applet and JAI. We are facing many drawbacks with the existing image processing software in the stand alone systems. It is detailed through introducing and analyzing the programming development method of JAI advanced image processing technology and Applet plug in implementation process. At the same time we also combine the actual research work by applying the system to the low resolution remote sensing image distributed processing system. Application results show that the system has a feature of good implementation practically. It is also multi-platform and secured which can fit various tasks of distributed image process. Keywords- Online image processing; Java Applet; JAI IntroductionThe development of image acquisition technology and increased demand for graphics applications led was impetus to the development of image processing technology and has a higher, newer request on Image processing system. Standalone centralized image processing system has been unable to meet the needs of the development of image processing especially in sharing and treating large amount. Distributed computing, networking technology such as distributed image processing is the key to solve the problem. It has become the hotspot of current research. Web based architecture of distributed computing has become an important direction. The business of logic Image Processing is different from ordinary Web Systems. It has its own characteristics: Network client processing functions ‘light’ but not ‘simple’, it should not only have the basic properties such as showing and scaling the image, but also must have a certain degree of image processing functions. At the same time it should consider the system efficiency and communication between the client and the server should also be reduced. Therefore it should be a fat client which can provide a variety of image formats to a unified data management and organization. At present, there is a lot of Technology in construction of the fat client application, such as Flash technology, ActiveX technology of Microsoft, java Applet little program of SUN, and so on. Systems using these technologies have their own characteristics, suit to different user needs. The Java applet has a good cross platform and security, is a good select to build a good client application of a strong image processing logic. Consider based on the above, the paper proposes an online image processing software architecture based on Java Applet, detailed description and analysis of JAI image processing programming development methodology, Applet plug-in implementation process as well as aspects related to applications. II. SYSTEM DESIGN Online image processing software using Java Applet plug-in architecture, the core of which is to build a plug-Applet, use JAI advanced image processing software development kit which will transplant stand-alone image processing functions into plug-ins, and begin online publication, provide image processing services. System architecture is shown in fig 1 The architecture is a typical B / S structure, the Applet plug-ins which has image processing functions is deployed in the Web server-side, and release web site to outside. When users need image processing services, enter the appropriate address through the browser, request to the server use network and HTTP protocol. After the server received service requests, it responds to client. Client can download Applet plug-code, and then activate the plug-ins using Java Runtime Environment installed in client-side to form the main work area, provides to users image processing services. KEY TECHNICAL AND FUNCTIONAL IMPLEMENTATION A.JAI Advanced Image Processing JAI ( Java Advanced Imaging ) Advanced Image Processing in many companies united by SUN, provide a typical Java extended API package based on Java 2D for Image Processing has a characteristic of powerful, cross platform, security, etc., completely object-oriented image processing technology, and provides a good framework for the expansion, provide functional support such as achieve a variety of image formats for data management and organizational model, and improve the basic operation of the image and image treatment. JAI is completely objectoriented API, Images and image processing operations is defined to object. Image data has rendered Image type to store and display. Image operations are described by Rendered Op, it’s a middle dot, Stored in a image processing and related parameters which will really operate. And obtain examples by JAI class static method Create. Parameter block object can store required parameters during image operation. Figure 2 is code snippet of images combined with a constant to each pixel. B. Applet plug-in design and implementation User image processing workbench is Applet plug-ins embedded in the Web page, The UML static modeling design shown in Figure 3. Figure 3 describes the UML design model Applet plug-in static relationships between the main types. MDIPS class is the main class of Java applet program, inherited from javax.swing. JApplet. The entire plug-ins model is mainly through MDIPS class together JMenuBar class, DataTools class, ImageTools class, WorkSpaceTree class, ImageEyesDisplay class and ImageDisplay class to achieve. JMenuBar class is mainly used to manage plug-ins model’s menu option. DataTools class and ImageTools class is both inherited from javax.swing.JToolBar class, the former is read model operation to all kinds of image source, and to local save the image result; The latter is the basic image operation, including roaming, zooming and narrow and so on. DataTools class is linked with WorkSpaceTree class, when there is data read will be passed to the Work SpaceTree class. WorkSpaceTree class is inherited from javax.swing.JTreeclass, which is a project tree, Implement the current project management. At the same time, il’s linked to ImageEyesDisplay class, when the project tree changes visiting the category in order to change the display of Eagle Eye. ImageDisplay class is the main data model display class; ImageTools class is linked to it, when after operation, display update by calling the type. ImageEyesDisplay class is double linked to ImageDisplay class, one of the two sides’ changes, immediately notify the other to show updates. In the Applet plug-in the main work area is divided into five sections: menu bar, tool bar, item manage area, EagleEye position and the main display area, Shown in Figure 5. Table 1 shows the implementation of the function C. System security Because network client uses a Java Applet, when in use need to be dynamically downloaded to client machines on the network. In order to protect the security of network client environment, Java uses the security mechanism of sandbox, when processing device, to control all levels of information security by reading the configuration file POLICY. By default, program based on Java Applet will not be able to access local resources such as file data. So, we make security configuration through the POLICY document security configuration as in table2, and the use of digital signature technology to empower users to access local resources, implement safe distributed image processing. SYSTEM APPLICATIONBased on the actual research work, through adding network communication module between the front Applet and the server, we apply the software to distributed remote sensing image processing. Implementation of a Web-based open system of low-resolution remote sensing image processing system: the front is the implement Applet plugins, Server-side using JNI technology call various kinds of advanced processing algorithms which are originally implemented by C++. Figure4 is the code of implementation on JNI. Figure 5 shows the results of contrast and color changing treatment to a Landsat7 image. CONCLUDING REMARKS Distributed image processing technology is the hotspot of current research, in particular, Web-based architecture. This paper design and implement a Java Applet plug-ins based online image processing system, and applying it to the distributed remote sensing image processing system. Application results show that the system has good usability, scalability, cross-platform and security features. It is able to fit different needs of Distributed Image Processing Services. At the same time, continue improving the client-side plug-ins, researching suitable image processing server software, constructing a more high-performance distributed image processing system, will be our next step in research work. BIBLIOGRAPHY[1] SUN. Programming in Java Advanced Imaging Release 1.0.1[DB/OL], November 1999 [2] Foster I., Kesselman C.. The Grid: Blueprint for a New Computing Infrastructure[J]. Morgan Kaufmann Publishers, San Francisco. 1999 312pp. [3] Shyu M., Haruechaiyasak C., Chen S.. Category cluster discovery from distributed WWW directories[J].Information Sciences.2003 18(4),181–197. [4] MA Weifeng, WANG Weihong, CAI Jiamei,etc. Design and Implementation of Remote Sensing Image Processing Based on Grid[J]. Application and Engineering of Computer. 2004(24) pp.134136 [5] MA Weifeng, CEN Gang, LI Jun, SHEN Zhanfeng. Analysis on High-powered Remote Sensing Image Processing and Spatial Information Grid Modeling[J]. Computer Engineering. 2006.03/Vol32. No.5 [6] Weifeng MA, Jun LI, Zhiyi XU, ect.. Research on Distributed Geocomputation Environment Adapting to Remotely Sensed Image Processing. Proceedings of ICCSE 2007, pp.666-670 385