NO

Author Topic: Convolution Filters Editor  (Read 308 times)

Offline Grincheux

  • Member
  • *
  • Posts: 329
  • Never be pleased, always improve
    • Arachne
Convolution Filters Editor
« on: July 25, 2021, 12:58:37 pm »
I have simplified the program. No Histogram and Preview Windows.
Added a "Save All" button to create all the effects.
Recompiled with Pelles 11.2
Editor random numbers are in the range -9999 to +9996
Now when the program save all the filters it runs with reduced ressources (BACKGROUND_BEGIN / END)
Added 2987 models.
Corrected some bugs.

Deleted some warnings when compiling. Level 2.
Removed unused code in the convolve functions.
Reduced allocated memory.
Tried to use MM_MALLOC but the function crashes.

I wanted to replace VirtualAlloc. For using GetDIBits, the memory must be aligned, this is OK with VirtualAlloc and MM_MALLOC would have to do the same thing, but it crashes...
I have set a new icon but this one is not good for me.
Removed some fields in the main structure.

Program can be downloaded at
https://www.mediafire.com/file/ggmgie9ktk2m82y/Cfe.7z/file
« Last Edit: August 19, 2021, 11:58:08 am by Grincheux »
-------------------------
Kenavo / Bye

Offline Grincheux

  • Member
  • *
  • Posts: 329
  • Never be pleased, always improve
    • Arachne
Re: Convolution Filters Editor
« Reply #1 on: August 27, 2021, 01:30:53 pm »
-------------------------
Kenavo / Bye

Offline John Z

  • Member
  • *
  • Posts: 358
Re: Convolution Filters Editor
« Reply #2 on: August 27, 2021, 03:24:05 pm »
You've been keeping busy  :)

Thanks - downloaded it too.

John Z

Offline Grincheux

  • Member
  • *
  • Posts: 329
  • Never be pleased, always improve
    • Arachne
Re: Convolution Filters Editor
« Reply #3 on: August 27, 2021, 04:43:18 pm »
Yes, I did not happen to do what I wanted.
Giving the result always is a hard thing.
I have defined a structure for the color and they are intialized in the source code, perhaps it will be useful.
Thank John.
-------------------------
Kenavo / Bye

Offline Grincheux

  • Member
  • *
  • Posts: 329
  • Never be pleased, always improve
    • Arachne
Re: Convolution Filters Editor
« Reply #4 on: September 21, 2021, 08:12:40 pm »
Now CFE uses a database into which user filters are saved too.
I added "favorite" to keep time.
Added 6 fusion options.
Added the possibility to remove or to update a filter.
Corrected some bugs and modified the toolbox dialog to be used on a single screen.
The program has 3262 predifined filters and 184 favorites (Good).

Don't edit the faile Datas.c with Pelle's IDE, you will get an error when compiling between the lines 3282 and 3291.
The lines are too long for Pelle. You can use NotePad++.
If you do this you the compile operation will be OK.

The new version is available at https://www.mediafire.com/file/4w94rgrr7sr0qiq/Cfe.7z/file

The result of what CFE can do is available on FLICKR at https://www.flickr.com/photos/188274347@N07/

An example

« Last Edit: September 21, 2021, 08:14:23 pm by Grincheux »
-------------------------
Kenavo / Bye

Offline John Z

  • Member
  • *
  • Posts: 358
Re: Convolution Filters Editor
« Reply #5 on: September 22, 2021, 12:44:16 pm »
Don't edit the file Datas.c with Pelle's IDE, you will get an error when compiling between the lines 3282 and 3291.
The lines are too long for Pelle. You can use NotePad++.

An example

Wow - I'm wondering did you try using continuation character to break up the long line(s)? I'll try using TextPad from Helios, and see how it goes.  I'm sure I have no business editing such a long lines though  :)
 - oh yeah I see filter 3258 has 4601 characters on a line..... (TextPad - no problem)

The linked example photo is quite interesting I like the effect on the tug boat and harbor.  Never been on "Flicker" but maybe I'll jump over for a look-see as long as not needing to join something or another...

John Z
« Last Edit: September 22, 2021, 01:02:09 pm by John Z »

Offline Grincheux

  • Member
  • *
  • Posts: 329
  • Never be pleased, always improve
    • Arachne
Re: Convolution Filters Editor
« Reply #6 on: Today at 10:06:22 pm »
-------------------------
Kenavo / Bye