Click here to Skip to main content
13,763,812 members
Click here to Skip to main content
Add your own
alternative version


130 bookmarked
Posted 23 Jan 2007

Universal Framework for Science and Engineering - Part 8: Digital Image Processing

, 16 Nov 2007
Rate this:
Please Sign up or sign in to vote.
An article on framework applications to digital image processing

Useful links:

Processing of plane



Digital image processing is one of the most important engineering problems. I'll not describe its applications, since you can find them here. This framework may solve lots of kinds of image processing problems. Inclusion of image processing to the framework gives several advantages. For example, image processing may be applicable to determination of the 6D position of a 3D object by photos. Latest tasks require contours of 2D images of 3D shapes. The picture at the beginning of this article is such a contour obtained by image processing.


Lots of methods of image processing are based on the following principle. The color of an image pixel is the result of a calculation. The data-in of this calculation are the colors of a source image. There exist two types of processing. The first one is local, where the color of a pixel in the destination image depends on the corresponding color of one pixel in the source image only. In the second case, that of nonlocal processing, the color of a destination pixel depends on neighboring source pixels. Let' s consider these two types of processing.

Local Processing

The scheme of local processing is presented below:

Scheme of image processing

This picture describes two images. Lady Rose is a source image and Lady Blue is the destination one. Other squares are math transformations. The ladies are presented below:

Lady Rose
Lady Blue

According to my software functionality, the result of the transformation does not only depend on the color of the pixels of the source image. It also depends on the coordinates of the pixels. So, the color of the faces and hands of both ladies are equal.

Nonlocal Processing

Nonlocal processing is more science-intensive than local. For example, it is used for face detection. I've used it for determination of the 6D position of a 3D object by photos. Now I'll present the Sobel gradient method. The scheme is presented below:


This scheme contains cascade transformations of images from Initial to Uncolored and then to Grad picture. These three pictures are presented below:

Grad picture

2D Visualization of Physical Phenomena

This section does not directly relate to image processing. Sometimes we need a 2D visualization of a physical phenomenon. Data processing of the framework enables us to do this. The picture below is a representation of one phenomenon related to optical fibers:

Physical phenomenon

Determination of Math Dependency

The true purpose of the framework is more the application of image processing to engineering tasks than pure image processing. Let us consider typical tasks in this area. Suppose that we have a dirty picture of a graph and we would like to build math dependency. This situation is presented in the following picture.

Determination of math dependency

The Source picture is a bad image of math dependency. The Transform is a result of image transformation. The Selection Selection componentcomponent makes two selections from the Transform image. The first selection is a collection of black points in x-coordinates and the second one is a collection of y-coordinates. Using the regression (see Part 2) component Regression component Processor, we've processed these selections and obtained an approximation of the graph by a piecewise-linear function.

An example of an approximation graph by polynomials is presented in the following picture:

Polynomial interpolation of math dependency

Processing of Oscilloscope Images

Let us consider a more complicated example. Suppose we have the following oscillogram photo:

Initial photo

We would like to obtain the math formulas of the sine graphs, but the photo is not ideal. Moreover, axes of coordinates are not strongly horizontal and vertical. First of all, local and nonlocal processing should been applied. The brief results are presented in the following picture:

Processing of photo

Lots of processing was left outside this picture. At last, pure sine functions and frame lines were obtained:

End of processing

Then, using vertical and horizontal lines, we can obtain math parameters of border parallelograms. After this work, we can obtain a true math model of sine functions. The definition of parallelogram and sine parameters have been performed by regression (see Part 2). The result is presented in the following picture:

Math model

We had supposed that both the width and height of the border parallelogram were equal to 1.


If we have several sets of photos of a 3D object, we can obtain its 6D position. In this example, this problem is solved in the following way. From the photos and virtual cameras, we obtain the contours of the object as it is presented on the following picture:

Picture before iteration

The red contour corresponds to the photo. Then we perform virtual 6D motion of the object to match contours to the 3D image. In result, we have a match that looks like this:

Picture after iteration

For solving this problem, we shall use the following combination of components:

Picture after iteration

The regression component (Part 2) has been used for resolving this problem.

Points of Interest

True art has a single way. Sometimes I think that the code of good developers is my own. I was a student of the VDI Software Engineering Training Center and I could not distinguish my code from the code of other students. Similar situations arise in other branches of art. Any deformation of a Greek statue made it ugly, although this statue remains magnificent even when it left its hands. Any error of an excellent pianist is a shock for the audience. Recently, I read a book written by Gaius Julius Caesar and found that military art also has a single way. Public policy is also a kind of art. Errors of political figures lead to the shock of civilians. After many years of development, I've found that my framework has only a single way. I encountered errors along the way; however, I should inevitably correct these errors.


  • 24 January, 2007 -- Original version posted
  • 16 November, 2007 -- Article content and downloads updated


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

Petr Ivankov
Russian Federation Russian Federation
Ph. D. Petr Ivankov worked as scientific researcher at Russian Mission Control Centre since 1978 up to 2000. Now he is engaged by Aviation training simulators . His additional interests are:

1) Noncommutative geometry

2) Literary work (Russian only)

3) Scientific articles

You may also be interested in...

Comments and Discussions

Questioncan't find ImageTransformationForm.dll i don't how to solve Pin
Tao craig21-Nov-17 21:11
memberTao craig21-Nov-17 21:11 
Questionexcellent Pin
beautyheart10-Dec-13 3:58
memberbeautyheart10-Dec-13 3:58 
GeneralMy vote of 5 Pin
Mas Huda30-Jul-12 16:04
memberMas Huda30-Jul-12 16:04 
QuestionLicense Pin
Petr Ivankov8-Apr-08 0:14
memberPetr Ivankov8-Apr-08 0:14 
GeneralSource code missing Pin
Tony Bermudez23-Jan-07 20:01
memberTony Bermudez23-Jan-07 20:01 
GeneralRe: Source code missing Pin
Chris Maunder23-Jan-07 20:27
adminChris Maunder23-Jan-07 20:27 
GeneralRe: Source code missing Pin
NormDroid24-Jan-07 1:41
professionalNormDroid24-Jan-07 1:41 
GeneralRe: Source code missing Pin
Petr Ivankov24-Jan-07 2:42
memberPetr Ivankov24-Jan-07 2:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Cookies | Terms of Use | Mobile
Web04-2016 | 2.8.181113.4 | Last Updated 16 Nov 2007
Article Copyright 2007 by Petr Ivankov
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid