NO

Author Topic: Convolution Filters Editor  (Read 10568 times)

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Convolution Filters Editor
« Reply #15 on: October 19, 2021, 06:21:38 PM »
Just an other update because I found two filters which give wonderful results.
I have reduced the dialogbox size and added a copy to clipboard possibility.

The whole project is at https://www.mediafire.com/file/0os3175cbxxc92y/Cfe-Setup.exe/file

 :) Well clearly we were both posting about the same time but you hit enter before me!

John Z

Grincheux

  • Guest
Re: Convolution Filters Editor
« Reply #16 on: October 19, 2021, 08:00:07 PM »
Great shoot.
Copy your image into a folder named "$" (or another name), drop it onto Cfe, click "Save All". All the filters will be applied and you get one image per each.


If you want to save an image, just click "Save"


When you created a new filter, click "Save" to save the filter and the image.


For your viewer, I used the VT100 on a PDP but never a VT330.
Remember the ANSI.SYS driver for DOS.

Grincheux

  • Guest
Re: Convolution Filters Editor
« Reply #17 on: October 20, 2021, 07:08:48 AM »
New update.
I have removed the merge between two filters.
The code always is present and will be added later as a dialogbox child of the toolbox
Its code is ready but not the tests.
I have removed some icons from the rc file.
I have reduced the size of the normalized color names

Full project at : https://www.mediafire.com/file/2tr7dw8bpctwf9q/Cfe.7z/file
Installation file at : https://www.mediafire.com/file/43z8q6g2m2ia459/Cfe-Setup.exe/file

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Convolution Filters Editor
« Reply #18 on: October 20, 2021, 01:21:17 PM »
Great - got it.  Going to give it another go. 
A lot of work after 'final update'  :) :) :)

John Z

BTW -
vCardz_i (my sourceforge vCard program) just passed 10K downloads across 147 countries :)
USA, Germany and France are the top three countries.  All due to Pelles C

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Convolution Filters Editor
« Reply #19 on: October 20, 2021, 02:17:11 PM »
Wow big UI changes ....
The Copy to Clipboard works very well.

Here is what I'm doing
1) Start the program
2) Drag and Drop a picture onto the main display
3) select a filter and view the image
4) repeat #3 until I find one interesting
5) then Copy to clipboard to save the file.  OR
    use the Save button next to the apply button  :)

Takes longer but not creating several thousand images ;)
I'm understanding it more.

John Z
« Last Edit: October 20, 2021, 02:19:16 PM by John Z »

Grincheux

  • Guest
Re: Convolution Filters Editor
« Reply #20 on: October 20, 2021, 06:11:03 PM »
Thank You John.


I love this program.
There is a bug I found after uploading.


At line 5947:0121, replace the NULL parameter with "__hWnd".
If not changed you cannot save all the filters ang get "The list is empty" error message.


The new version will be uploaded sooner but before I would like to add a "View All".
The option will interact like a diaporama.


Grincheux

  • Guest
Re: Convolution Filters Editor
« Reply #21 on: October 21, 2021, 09:41:02 AM »
An other update.

Added a viewer.
The timer can be set to 1, 2, 3, 4, 5, 10, 15, 30 and 60 seconds.
The ESCape key close the viewer.
You can use the keys VK_HOME, VK_END, VK_PRIOR and VK_NEXT. For the two last keys the increment is 20.
The VK_SPACE key also can be use to stop the viewer until you press again the VK_SPACE key.

Speed improved too.
The bug for the SaveAll function has been corrected.

Download : Full project : https://www.mediafire.com/file/cad2g350ecnn6nv/Cfe.7z/file
Binaries : https://www.mediafire.com/file/dkceybk5tqjdas1/Cfe-Setup.exe/file

Some results : https://www.flickr.com/photos/194243308@N08/

I have changed of acount on flickr because an italian did not like I make better than him...
« Last Edit: October 21, 2021, 09:48:33 AM by Grincheux »

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Convolution Filters Editor
« Reply #22 on: October 21, 2021, 12:39:39 PM »
Got it -  :)  will give it a run later today.

remember the saying though -
“You can please some of the people all of the time,
you can please all of the people some of the time,
but you can't please all of the people all of the time”
.
by John Lydgate


Cheers,
John Z

Grincheux

  • Guest
Re: Convolution Filters Editor
« Reply #23 on: October 21, 2021, 04:33:32 PM »
I don't understand

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Convolution Filters Editor
« Reply #24 on: October 21, 2021, 05:12:40 PM »
 :)
Vous pouvez plaire à certaines personnes tout le temps,
vous pouvez plaire à tout le monde de temps en temps,
mais tu ne peux pas plaire à tout le monde tout le temps

Means you can't please everyone...


John Z

Grincheux

  • Guest
Re: Convolution Filters Editor
« Reply #25 on: October 21, 2021, 07:44:08 PM »
OK, but I don't know why you out that. I have made something wrong?

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Convolution Filters Editor
« Reply #26 on: October 21, 2021, 09:42:10 PM »
No no you did nothing at all.  It was aimed at ‘an Italian’

I have changed of acount on flickr because an italian did not like I make better than him...

Sorry for the confusion I created.

John z
« Last Edit: October 22, 2021, 12:27:19 PM by John Z »

Grincheux

  • Guest
Re: Convolution Filters Editor
« Reply #27 on: October 24, 2021, 01:47:38 PM »
New update.

Added a name to the filter.
The names comes from an other table.
In fact it is an asteroid name.

Added a button form filling wiith value -1
Added an other button 'X' for filling the editor with the value of your choice.
Added a Diaporama

Removed the "Rename" button.

The interface would need a toolbar but I don't know to draw nice icons.
That would reduce the dialogbox size.

Into the file "Data.c" it is possible to replace the datas of
Code: [Select]
PGM_FILTERS   RescueFilters[]      =   {
{1   ,0,"(None)","(None)","(No Comment)",9,0,1,0,3,0,1,0,0,0,0,0,0,0,0,0,1,0,1},
{2   ,0,"(None)","(None)","(No Comment)",9,0,1,0,3,0,1,0,0,0,0,0,0,0,0,1,1,0,1},
{3   ,0,"(None)","(None)","(No Comment)",9,0,1,0,3,0,1,0,0,0,0,0,0,0,0,1,1,1,1},
{4   ,0,"(None)","(None)","(No Comment)",9,0,1,0,3,0,1,0,0,0,0,0,0,0,0,1,-1,1,4},

with the contents of the file "$Export Filters$.c" without making any change.
Like this you can give some one an application with your own filters included as model.
You users wont't be able to delete them.

In the previous versions the "$Export Filters$.c" file had each record entirely filled.
Now only the values corresponding to the real size of the filter are written.
I explain.
The full size of a filter is a matrix of 29x29 that gives 841 integer values.
If your filter is 3x3, 9 values, the 382 values after the nine first are written using '0'!
Today, only the needed values are written.

An other thing to change would be if the last item of the matrix is "0", it is not useful to write it, the compiler will do the job.
There are 100 cases like this.

The binaries are at : https://www.mediafire.com/file/iofnfo8xr4af8a2/Cfe-Setup.exe/file
The full project is at : https://www.mediafire.com/file/dp4ktqlxk1qq6h3/Cfe.7z/file

That's all for today
« Last Edit: October 24, 2021, 01:49:16 PM by Grincheux »

Offline John Z

  • Member
  • *
  • Posts: 790
Re: Convolution Filters Editor
« Reply #28 on: October 24, 2021, 02:24:52 PM »
Nice photo!

For vCardz_i program I used some icons for the alternate toolbar from
ToolBar Icons Source
https://community.kde.org/Frameworks  Oxygen open source icons package oxygen-icons-1_5.65.0-2-any.pkg.tar.xz

The user can select which toolbar they like best  :)

I'll grab your new version and repeat my test from earlier today.

John Z

Grincheux

  • Guest
Re: Convolution Filters Editor
« Reply #29 on: October 24, 2021, 03:21:39 PM »
Thank You I take a look.