Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Image correction

 
Rodricks george
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sir,

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

Like image modification.

-Regards,

Rodricks
 
Ulf Dittmer
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you sir... I had done that module successfully... With your idea.. Thanks a lot

-Regards,

Rodricks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic