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

Post your Gambas programming questions here.
Post Reply
User avatar
Cedron
Posts: 156
Joined: Thursday 21st February 2019 5:02pm
Location: The Mitten State
Contact:

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

Post 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
Attachments
FasterFocusMetric-0.0.1.tar.gz
(13.01 KiB) Downloaded 362 times
Last edited by Cedron on Saturday 25th May 2019 3:54pm, edited 1 time in total.
.... and carry a big stick!
User avatar
cogier
Site Admin
Posts: 1118
Joined: Wednesday 21st September 2016 2:22pm
Location: Guernsey, Channel Islands

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

Post 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 359 times
User avatar
Cedron
Posts: 156
Joined: Thursday 21st February 2019 5:02pm
Location: The Mitten State
Contact:

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

Post by Cedron »

Thanks Cogier,

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

Ced
.... and carry a big stick!
Post Reply