image processing - Simulate cataract vision in OpenCV -


i'm working on project design low vision aid. image processing operation can simulate cataract vision normal eye using opencv?

it useful if described symptoms of cataract , happens retinal images since not people here experts in computer vision , eye deceases @ same time. if retinal image gets out of focus , gets yellow tint can used opencv blur() function , boost rgb values yellow bit. if there different degree of blur across visual field recommend using integral images, see this post

enter image description here guess there @ least 3 operations do: add noise, blur, whiten:

rect rect2(0, 0, w/2, h); mat src = i4(rect2).clone(); mat mnoise(h, w/2, cv_8uc3); randn(mnoise, 100, 50); src = src*0.5+mnoise*0.5; // add noise mat mblur; blur(src, mblur, size(12, 12)); // blur rect rect3(w, 0, w/2, h); mat mblurw = mblur*0.8+ scalar(255, 255, 255)*0.2; //whiten 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -