Thursday, November 24, 2011

Visual Basic Programming

Control Structure IF ... THEN
Forms of writing (syntax) IF ... THEN structure:
IF THEN
When is True then be done.
IF THEN

ELSE

END IF

Example :

Dim average as Integer
average = 45
If average> 50 Then
txtGrade.Text = "Pass"
Else
txtGrade.Text = "Fail"
End If


If Then
statements A
ElseIf Then
statements 2
ElseIf Then
statements 3
Else
statements 4
End If

Example :
If average> 75 Then
txtGrade.Text = "A"
ElseIf average> 65 Then
txtGrade.Text = "B"
ElseIf average> 55 Then
txtGrade.text = "C"
ElseIf average> 45 Then
txtGrade.Text = "S"
Else
txtGrade.Text = "F"
End If




Introduction To Visual Basic

Programming Visual ?
The use of visual components (icons, buttons, images, lists, ..) as user inteface.
Influenced the development of the operating system -> GUI (Graphical User Interface)
Apple Macintosh (MacOS), Microsoft (Windows), Linux (KDE, Gnome, X windows),

The development of user interfaces in software / application
  • Based text / command line
  • Based GUI
Difference-based and GUI-based text / visual
  • text-based -> Processing the input / output is performed sequentially
  • GUI-based -> Processing the input / output can not be done sequentially
Visual Basic Programming
In visual programming, the technical term - event
Event: An event caused by the activities of the user who of course
eg clicking on the button, right click, etc.
Visual programming approach event-driven, Ie the commands executed after an event occurs or triggered by the event

GUI applications are composed of the window / frame / form
as its main component, and other visual components


Each window has a ID / handle (hWnd), as an identifier to distinguish one window to another window in the operating system environment
Window is the mother of all visual components attached to it

Thursday, November 3, 2011

Digital Image Basics

Digital Image Format

Broadly speaking, a digital image can be represented in two types, namely:

Raster

The image is a collection of dots, each of which describes the color

Vector

The image is a group of build-up that defined mathematically.

Digital Image Model

This type of digital image processing will be discussed in this is the type of raster image. So the image is seen as a collection of dots called pixels ( pixel /pels : Picture elements) as shown below:

From the figure above shows that an image can be regarded as a two dimensional array or matrix of a pixel value. The terms of rows and columns can also be replaced with the position x and y and the pixel values ​​are denoted by z who has a relationship z = f (x.y) which means the pixel value is a function of position in x and y.

Digital Image Processing System

Preliminary

The image is a picture of an object. The picture can be captured directly by human senses or with assistive devices such as cameras. Images captured by an image of the tool can be divided into analog and digital imagery. In this image processing subjects covered are image digital image

The introduction of Digital Image

Digital image obtained from the digitization process by digitizer or sensor to an object or image of analog sperti shown in the following figure:

Digital Image Processing System

Digital image processing system can be divided into several parts:

§ Image Acquisition

In this section, the image processing system to process to get a digital image. Examples of tools used include: camera / digital cameras, scanners and video.

§ Storage / Storage

Having gained / acquired images will be stored. The amount of storage space required depends on the large-size images and image quality. The storage process can be broadly divided into two, namely temporary, for example: computer memory, and is permanent, for example: floppy disks and CDs.

§ Processing

In this section of digital images will be processed as desired. It is generally used for digital image processing computer systems.

§ Communication

An image that will be processed and once processed will be sent / transmitted to other equipment, so we need a communication protocol, eg TCP / IP.

§ Display

The results of processing the image should be displayed, either on a screen (computer monitor, TV) and in printed form (printer).

Image Histogram

  Histogram Color is one of the features that can be used in image retrieval system. Color can be represented in the form of a histogram....