简体   繁体   中英

Blur images using Java?

I want to blur a picture and then slowly to make it focus.

I want to do it with java, there is any open source that do this?

I found some open sources that blur the picture but none that do the reverse.

Have a read about (or Google) Convolution Filters - it's basically a way of changing a pixels value based on the values of the pixels around it. So apart from blurring, you can also do things like image sharpening, line-finding etc.

Java FX 2 has some methods to apply a blur effect - see for example this tutorial . The example can be adapted to blur an image instead of text.

You can blur your image then progressively "unblur" it to make it look more focused.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM