xinario / defocus_segmentation Goto Github PK
View Code? Open in Web Editor NEWLBP-based segmentation of defocus blur
LBP-based segmentation of defocus blur
Hi,
I was trying to get this to work on a set of pictures. But it seemed to not identify focused parts, the segmentation looks like noise..
Generated the frames with
> find images -name "*.jpg" -exec python lbpSharpness.py --input {} \;
Then turned the images into a gif using:
> ffmpeg \
-framerate 60 \
-pattern_type glob \
-i '*.jpg' \
-r 15 \
-vf scale=640:-1 \
out.gif
I tried to mess around with s
and threshold
parameters, but with no luck..
Any pointers?
I wonder which value would indicate better how sharp an image is from the generated map:
sharpness_map = lbpSharpness(img_gray, 21, 0.016)
sharpness = np.mean(sharpness_map)
# (or)
sharpness = np.var(sharpness_map)
Any suggestions?
Hello
Thank you for this amazing code.
Can you please help me in converting the sharpness map to a segmented image
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.