Generating and saving images of characters

This forum is for eXpress++ general support.
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Generating and saving images of characters

#21 Post by Eugene Lutsenko »

rdonnay wrote:
I'm an example of the function GetPixel() in LoadArray() on an array of image files without any user to move from one image to another.
Do I understand that you have an array of image colors (RGB) and that you want to display an image on the screen from that array?

Are you saying that you have many arrays (multi-dimensional) and that you want to step thru all the arrays and display the images?

Do I have this in reverse?

Are you saying that you have an array of images that contains file names and that you want to display the images and then save them to arrays?

Maybe you should post your answer in Russian language and I will try to translate with software.
I have a large number of image files in multiple subdirectories. In this case, these are the files with the images of characters of different fonts and sizes. But generally speaking, it can be any images of various objects. I need to make an array of full names of these files (it is clear how to do this). Then I need each image represented as a two-dimensional array (as it is done with the help of the LoadArray()) function, which would have the information about each pixel, which is given by the function GetPixel(). It is also necessary, that all the images were processed in succession without stopping after each and without user's clicking any buttons to proceed with the next image.

У меня есть большое количество графических файлов в нескольких поддиректориях. В данном случае это файлы с изображениями символов разных шрифтов и размеров. Но вообще говоря это могут быть любые изображения различных объектов. Мне нужно составить массив полных наименований этих файлов (это понятно как сделать). Затем мне нужно каждое изображение представить в виде двумерного массива (как это делает функция LoadArray()), в котором бы была информация о каждом пикселе, которую дает функция GetPixel(). Надо также, чтобы все изображения обрабатывались подряд без остановки после каждого и без необходимости пользователю кликать по каким-либо клавишам для перехода к обработке следующего изображения.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Generating and saving images of characters

#22 Post by rdonnay »

Ok, this is becoming more clear.

One more question.

What do you want to do with the array information?
Are you wanting to save it to disk?
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Generating and saving images of characters

#23 Post by Eugene Lutsenko »

I had a thought. But this is at a minimum. But in general, I would like to fill in the image information database. This base meets the requirements of one of the Eidos software system interfaces with external databases. This means that I will be able to process information about the images on your system. This system allows us to solve many different tasks:
- Compilation of images belonging to the same category (such as receipt of a generalized image of the character "A" different fonts);
- Quantitative comparison of the degree of similarity with a generalized specific image (identification symbol "A");
- Display information about the most characteristic features of a generalized image of a certain category;
- Display information about the most informative features of generalized images;
- Display information about the features of the least informative of generalized images;
- Classification of generalized images (such as cluster analysis)
- And a number of others.

У меня была такая мысль. Но это как минимум. Но вообще я хотел заполнить информацией об изображениях базу данных. Эта база соответствует требованиям одного из программных интерфейсов системы Эйдос с внешними базами данных. Это значит, что я смогу информацию об изображениях обрабатывать в своей системе. Эта система позволяет решать много различных задач:
- обобщение изображений, относящихся к одной категории (например получение обобщенного образа символа "А" разных шрифтов);
- количественное сравнение степени сходства конкретного изображения с обобщенным (идентификация символа "А");
- вывод информации о наиболее характерных особенностях обобщенного изображения определенной категории;
- вывод информации о наиболее информативных особенностях обобщенных изображений;
- вывод информации о наименее информативных особенностях обобщенных изображений;
- классификация обобщенных изображений (типа кластерного анализа)
- и ряд других.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Generating and saving images of characters

#24 Post by rdonnay »

I was hoping I could write you a sample program that reads the bitmaps files, creates the arrays and saves the arrays.

For now, I will save the arrays as a string in a database.
I can create a database with a BLOB field for saving this data.

Then I will write a routine that reads the data from the database and recreates the bitmaps on screen.

What you want to do with the array data is your business.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Generating and saving images of characters

#25 Post by Eugene Lutsenko »

rdonnay wrote:I was hoping I could write you a sample program that reads the bitmaps files, creates the arrays and saves the arrays.

For now, I will save the arrays as a string in a database.
I can create a database with a BLOB field for saving this data.

Then I will write a routine that reads the data from the database and recreates the bitmaps on screen.

What you want to do with the array data is your business.
If you do this, then this will be more than enough. The rest I really could do it myself. But I would be happy to write with you an article about this in our Scientific Journal of KubSAU: http://sj.kubsau.ru/

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Generating and saving images of characters

#26 Post by rdonnay »

If you do this, then this will be more than enough. The rest I really could do it myself.
If you already have a lot of bitmap files created, then zip them up and give them to me.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Generating and saving images of characters

#27 Post by Eugene Lutsenko »

Somehow, the postal service says that there is no such address. Can you send me a letter. The program, which generates the bmp-files can be found here: http://lc.kubagro.ru/Dima/LC_GenFontsEng3.rar. In this program I want to use your development.

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: Generating and saving images of characters

#28 Post by Auge_Ohr »

Eugene Lutsenko wrote:ALINK: fatal error ALK4001: cannot open file "gdi32.lib"
as Source say
// gdi32.lib is required for linking GetTextDimensions.obj.
// The file is available as part of the Masm32 package from
// http://www.masm32.com/masmdl.htm
here extract Masm32 GDI32.LIB
MASM32_gdi32.zip
(17.22 KiB) Downloaded 621 times
greetings by OHR
Jimmy

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Generating and saving images of characters

#29 Post by Eugene Lutsenko »

Auge_Ohr wrote:
Eugene Lutsenko wrote:ALINK: fatal error ALK4001: cannot open file "gdi32.lib"
as Source say
// gdi32.lib is required for linking GetTextDimensions.obj.
// The file is available as part of the Masm32 package from
// http://www.masm32.com/masmdl.htm
here extract Masm32 GDI32.LIB
MASM32_gdi32.zip
Hi, Jimmy!

Now your program is compiled and running. But I did not understand what she was doing.

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Generating and saving images of characters

#30 Post by rdonnay »

Somehow, the postal service says that there is no such address.
I guess you didn't understand what I meant by ZIP. I meant an archive file. RAR.
I'm not asking you to mail me anything.

Jimmy -

Are you taking over this project?
If so, I won't spend any more time on it.
The eXpress train is coming - and it has more cars.

Post Reply