Pelles C forum
Pelles C => Projects developed with Pelles C => Topic started by: Grincheux 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 (https://www.mediafire.com/file/ggmgie9ktk2m82y/Cfe.7z/file)
-
New version available.
It uses colors defined in https://en.wikipedia.org/wiki/List_of_colors:_A–F (https://en.wikipedia.org/wiki/List_of_colors:_A–F)
Binaries and sources at : https://www.mediafire.com/file/i7u6q3a2mmar5k3/Cfe.7z/file (https://www.mediafire.com/file/i7u6q3a2mmar5k3/Cfe.7z/file)
Exemple : https://www.mediafire.com/file/864te1b8sbvlsss/%2524.7z/file (https://www.mediafire.com/file/864te1b8sbvlsss/%2524.7z/file)
-
You've been keeping busy :)
Thanks - downloaded it too.
John Z
-
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.
-
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 (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/ (https://www.flickr.com/photos/188274347@N07/)
An example
(https://live.staticflickr.com/65535/51431916350_58746e993b_k.jpg)
-
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 version. Il will not be updated.
Links :
Installation : https://www.mediafire.com/file/f26xdnnuuydrnuw/Cfe-Setup.exe/file (https://www.mediafire.com/file/f26xdnnuuydrnuw/Cfe-Setup.exe/file)
All the project : https://www.mediafire.com/file/4nmm3tyq1jlzq0m/Cfe.7z/file (https://www.mediafire.com/file/4nmm3tyq1jlzq0m/Cfe.7z/file)
-
Last version. Il will not be updated.
Links :
Installation : https://www.mediafire.com/file/f26xdnnuuydrnuw/Cfe-Setup.exe/file (https://www.mediafire.com/file/f26xdnnuuydrnuw/Cfe-Setup.exe/file)
All the project : https://www.mediafire.com/file/4nmm3tyq1jlzq0m/Cfe.7z/file (https://www.mediafire.com/file/4nmm3tyq1jlzq0m/Cfe.7z/file)
If you change your mind, File | Open is desperately needed.
Drag and Drop is a horrible user interface, IMO.
You did a great job on your convolution engine.
I wrote a 3x3 and 5x5 convolution filter about 20 years ago. Really interesting subject!
-
(https://live.staticflickr.com/65535/51518090175_81eb343397.jpg)
If you change your mind, File Open is desperately needed. Drag and Drop is a horrible user interface, IMO.
I was thinking about. You are right I will do it. I will post the new version when it is done. Thank You for the remark.
I wrote a 3x3 and 5x5 convolution filter about 20 years ago. Really interesting subject!
With Cfe you can do 29x29 filter.
Here is an other update Complete Project : https://www.mediafire.com/file/cnm0k2c2u3u64ok/Cfe.7z/file (https://www.mediafire.com/file/cnm0k2c2u3u64ok/Cfe.7z/file)
Binaries : https://www.mediafire.com/file/45dvxdr32775ym6/Cfe-Setup.exe/file (https://www.mediafire.com/file/45dvxdr32775ym6/Cfe-Setup.exe/file)
You can rename the filters and the Goods
You have 10 undo levels
------------------------------------------------------------------
1994 Filters
120 Goods
-
Last version. Il will not be updated.
When you achieve your vision then you are done. ;)
However the file open is a good add. Especially since starting the program it occupies the entire screen so to do a drag-and-drop requires resizing the main window before doing anything. Another thing which confused me initially is when I dropped the file (actually tried many times) nothing would happen so it was unclear that anything was ever dropped. Then I figured out you need to drop the file then change some settings to get it to appear. Would be nice for the file to appear when dropped.
That being said the amount of work you have put into this is incredible. Your last update reduced the exe by about 4megs I think and removed less than useful filters.
John Z
-
Thank You JohnZ
The Open File is not for today, I have thought that a man that chooses is photos takes them and put them under the light one by one. It is this image I have in my head.
I have an other update after many hundred of tests. Some bugs corrected, above all a bug that will no frees memory.
It is possible to export the database into a C source file. That permits you to create other filters and if they are good you
take the file "$Export Filters$.c" and copies the data to replace the in the Datas.c. You recompile and your new ilters are there.
Models cannot be deleted except if you are in admin mode.
This made by changing the "Cfe.ini" file. By default you are admin and the database is exported.
I know that the toolbox occupies the whole screen, it is a problem that I would like to improve. Perhaps by adding a preview window?
You can minimize the toolbox.
I have made comparisons between Cfe and other programs, it is more than correct.
Now I am looking at Neurons filters, it is hard and I did not stay at school for a long time...
When starting the program lists all the filters but in choosing a size and the click on select you have all the filters for the selected size.
If you click on "Save All" it will save all the filters in the combobox form the one that is selected (Default the first filter).
There are 2600 filters that I created and verified. No blck background.. Removed Sobel and Laplace filters, but you can add them.
It is possible to rename a filter but the name will be lost while exporting.
It is possible to add a comment, that will be kept while exporting.
It is possible to get a previous filter between one and ten but I don't understant how it works!
It is something I must change.
The left part of the toolbox is for creating filter.
Personnaly I don't use the background and the fusion/merge button.
The right part of the toolbox is for merging two filters together.
Some results are funny.
The files to download are at :
https://www.mediafire.com/file/cnm0k2c2u3u64ok/Cfe.7z/file (https://www.mediafire.com/file/cnm0k2c2u3u64ok/Cfe.7z/file) for the bunaries
and
https://www.mediafire.com/file/cnm0k2c2u3u64ok/Cfe.7z/file (https://www.mediafire.com/file/cnm0k2c2u3u64ok/Cfe.7z/file) for the whole project
Have fun and don't hesitate to make comments, they will help me.
Thank You
-
Thank You JohnZ
The Open File is not for today, I have thought that a man that chooses is photos takes them and put them under the light one by one. It is this image I have in my head.
I always have agreed with staying true to your vision, as I do with my programs.
Have fun and don't hesitate to make comments, they will help me.
I'll give it a go and see how some of my photos turn out :) Some of which are at this site
https://sourceforge.net/projects/sixelviewer/
HaGD,
John Z
-
I have dowloaded SixEl. The six format is not very common.
I was suprise when eeing Leonardo, I did not think to him!
Runs well on my pc and is very fast.
Thank You
If you test my pgm the filter 1724 is
-1 -1 -1 -1 -1
-1 -1 0 1 -1
-1 0 20 0 -1
1 1 0 -1 -1
-1 -1 -1 -1 -1
It 's a good filter for adding luminosity to an image.
Good filters are 1724 a 1725
Good night
-
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 (https://www.mediafire.com/file/0os3175cbxxc92y/Cfe-Setup.exe/file)
-
I have dowloaded SixEl. The six format is not very common.
I was suprise when seeing Leonardo, I did not think to him!
Runs well on my pc and is very fast.
Thanks! I think my sixelviewer is the only standalone windows sixel viewer. None of the big guys support the format.
Got your new CFE version! Tried several things and posting one output here. Sorry to say I could not figure out how to save the 'filtered' image result. Ended up using iview to capture the screen. A lot of built in capability I'll need to play with it longer.. I do like that the arrow keys can be used to cycle through the filters faster than using the mouse and dropdown list - good design.
John Z
-
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 (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
-
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.
-
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 (https://www.mediafire.com/file/2tr7dw8bpctwf9q/Cfe.7z/file)
Installation file at : https://www.mediafire.com/file/43z8q6g2m2ia459/Cfe-Setup.exe/file (https://www.mediafire.com/file/43z8q6g2m2ia459/Cfe-Setup.exe/file)
-
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
-
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
-
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.
-
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 (https://www.mediafire.com/file/cad2g350ecnn6nv/Cfe.7z/file)
Binaries : https://www.mediafire.com/file/dkceybk5tqjdas1/Cfe-Setup.exe/file (https://www.mediafire.com/file/dkceybk5tqjdas1/Cfe-Setup.exe/file)
Some results : https://www.flickr.com/photos/194243308@N08/ (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...
-
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
-
I don't understand
-
:)
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
-
OK, but I don't know why you out that. I have made something wrong?
-
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
-
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
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 (https://www.mediafire.com/file/iofnfo8xr4af8a2/Cfe-Setup.exe/file)
The full project is at : https://www.mediafire.com/file/dp4ktqlxk1qq6h3/Cfe.7z/file (https://www.mediafire.com/file/dp4ktqlxk1qq6h3/Cfe.7z/file)
That's all for today
-
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
-
Thank You I take a look.
-
Wow - how about this one? Very cool accident :)
My photo by the way.....
John Z
-
You make 3D Image!
-
New update.
Added the famous "O P E N" button.
Corrected some bugs signaled by JohnZ
Updated SQLite
Next thing to do: Add tooltips, before JohnZ tells me to do it!
See you later the Ghosts
-
Replaces icons wirh bigger icons
Clean filtres, removed 1800 filters vert similares
Synchronisés thé size combo with thé modèles combo
Added a statusbar for showing informations
-
Sounds good looking forward to new version.
Clean filtres, removed 1800 filters vert similares
.....
Added a statusbar for showing informations
Cleaning the filters is very good I thought visually I notice a repeating visual similarity cycle. I ran a file duplicate detection on them but they were dissimilar in binary data but similar visually.
I'm all for status bar information. :)
John Z
-
me too I ran such a tool and got the same results.
So I decided to remove the filters "visually".
I set new icons in 32x32
Thank you for oxygen
-
An other update.
I have corrected a logical bug.
Normaly Cfe would have to compute the average before setting the value to the central point.
It did not do!
Rather than dividing by the number of edit fields, it divided by 1 by default.
That is the divisor in the input filed had the values 0 or 1.
If you specified an other values (> 1), he did the job and computed the average.
Now it is corrected and if the Divisor is equal to zero it is set to the number of edit fieds.
Example:
3x3 it divides by 9 by default and set the Divisor edit field to 9.
29x29 it divides by 841 by default and set the Divisor edit field to 841.
I have cleaned the filters and added a new comment in the Divisor toolTip.
Deleted dead code.
Added a Viewer / Diaporama.
Next update: Added tools to help editing fields.
When rditing matrix greather than 9x9 is a long and not interesting operation.
For example I will add rotations (West, East, North, South).
Because som kinds of filters need to beed applied twice after rotating the filter: Sobel, Robinson...
For Robinson, it requires 8 rotations by 22.5°
I will play with sinus and cosinus... a great pleasure!
An other thing to to do is to be faster again and correct a bug after drawing.
The good window does not alaways appear.
When you have an idea you don't imagine the kinds and the number of problems it will generate.
-
I ran the new version attached are some screen shots of the result. Only ran the 3x3.
It is hard to tell if the divisor change has affected the output.
One thing to note on the bridge picture, second attachment, it started as 9,982,006 Byte, 256 color BMP. Every 3x3 filter output was exactly 29,910,014 bytes with many 10's of thousands of colors. One example had 119,118 colors while another had 1,919,784 colors.
This may all be expected but it is all new to me.... :)
John Z
-
Final version, the program is finished
https://www.mediafire.com/file/rm3eq37qwh64tgx/Cfe-Setup.exe/file (https://www.mediafire.com/file/rm3eq37qwh64tgx/Cfe-Setup.exe/file)
-
Final version, the program is finished
https://www.mediafire.com/file/rm3eq37qwh64tgx/Cfe-Setup.exe/file (https://www.mediafire.com/file/rm3eq37qwh64tgx/Cfe-Setup.exe/file)
Great news! I'll grab a new version. Time for a break :)
Congratulations too,
John
-
I have new ideas so the program will never be finished. :P
-
My Convolution Filter Editor is finished.
Here are the binaries.
Finally I have choosen ZeeGrid.
When running Cfe for the first time, you have 528 filters ready to use.
https://www.mediafire.com/file/q750zhi6mv4u9n4/7UpCfeBinaries.exe/file (https://www.mediafire.com/file/q750zhi6mv4u9n4/7UpCfeBinaries.exe/file)
-
Great job - it works well. Interesting results can be had. :)
John Z
-
Great job - it works well. Interesting results can be had.
This also is what the ghosts are thinking about Cfe.
-
The last version can be downloaded Here (https://www.mediafire.com/file/2lpsqaa47r6bmm8/7UpCfeBinaries.exe/file)
-
:)
Nice!
John Z
-
CFE is now on SourceForge : https://sourceforge.net/projects/convolution-filter-editor/ (https://sourceforge.net/projects/convolution-filter-editor/)