Page 1 of 1

DSP: Find Focused Areas in Image (Attachment is here)

Posted: Thursday 23rd May 2019 7:18pm
by Cedron
[Attachment removed: Use Cogier's version in the next post.]

This is code in support of my answer here:

https://dsp.stackexchange.com/questions ... cted-using

This program demonstrates a few image processing techniques. The coolest is probably turning a pic into a "drawing".

The code is somewhat fragile, i.e. press Go before Load and it blows. Press Go to soon and the previous image may be overwritten.

Feel free to fix these in your version and repost.

Ced

Here's a sample:

Image

Image

Re: DSP: Find Focused Areas in Image (Attachment is here)

Posted: Saturday 25th May 2019 3:30pm
by cogier
Hi Cedron, that is a very interesting bit of code. I thought I would fix it up a bit so I made a few changes: -

Fixed the crash when pressing 'Go' when there is no image loaded
Added a process label
The form is now resizable
Added pictures and shortcut keys to the buttons
The program remembers the last used path
Added a save option and stopped the autosave routine
Added a logo for the program and form

I hope it is of some use.
FasterFocusMetricCO.tar.gz
(52.44 KiB) Downloaded 364 times

Re: DSP: Find Focused Areas in Image (Attachment is here)

Posted: Saturday 25th May 2019 3:55pm
by Cedron
Thanks Cogier,

Those are big improvements. I've removed my version; people should use yours.

Ced