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
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: 42946
    
  70
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? ...
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: 42946
    
  70
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