aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Image correction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Image correction" Watch "Image correction" New topic
Author

Image correction

Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,

I am doing image correction module. I have an PNG image in Struts jsp and i will select the area of black dots and if i press a button i want to clear the black dots in that area...

I am using JAVA JAI for cropping and other manipulation. Please give some idea.

-Rodricks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
Please give some idea.


Ideas about what? Using JAI? Creating a web app that displays images? Creating an HTML page that lets a user select a portion of an image? ...


Ping & DNS - updated with new look and Ping home screen widget
Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Sir,

Please give some idea to clear the black dots on selected area in images.

Like image modification.

-Regards,

Rodricks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39576
    
  27
I haven't use JAI, but I don't think it's even necessary in this case. You can load the image using ImageIO, and then use the BufferedImage to get at the pixel/raster data. Then -in the rectangle you have marked before- look for pixels that have RGB values of 0/0/0 (black) and replace them by 255/255/255 (white) or whatever other color qualifies as "clear" in your context. You can once again use ImageIO to save the image.
Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Thank you sir... I had done that module successfully... With your idea.. Thanks a lot

-Regards,

Rodricks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image correction
 
Similar Threads
Image shutter
Console Ouput in Applet.
Java2D question.: How can you superimpose an image on another?
Counting Dots
custom cursor in XOR mode