Interactive Tool For Learning and Programming Morphological Image Processing Using IDL Abstract
Interactive Tool For Learning and Programming Morphological Image Processing Using IDL Abstract
using IDL
Abstract :
Introduction :
Morphological image processing deals with tools for extracting image components
that are useful in the representation and description of shape. It is viewed as a general
image processing framework.Various image processing techniques such as gradients,
distance images, skeletons, noise removal, structure detection (edges, lines, corners, etc.),
segmentation,direct morphological object and character recognition,contrast
enhancement, filling can be implemented by combining only a few simple morphological
operations. Typically used before and after an image segmentation. All mathematical
morphology operations are based on dilation and erosion. Morphological operations
apply a structuring elements to an input image, creating an output image of the same size.
Many web-based and desktop tools are available which allow user to process
images, the conceptual base is not clear. The available systems for Morphological Image
processing are easy to use but do not appear interactive to users and are not subjective
enough for the user to understand the logic or the method of process.In this paper we will
explain our interactive tool that helps the users to learn all the morphological image
processing concepts with appropriate examples and videos. In addition to this they can
also obtain Interactive Data Language (IDL) programming skillset.
Complete tool was created using Interactive Data Language. With the help of
extensive image processing capability in IDL, this system enable users to understand the
concepts and implementation of Morphological image processing more clearly with self
practice examples and stage by stage display of the image transformation process. It
explains the user about the working of the algorithm and how the data of the image
characterized by the pixels is manipulated and final output image is obtained. The image
processing toolkit in IDL includes many mathematical morphology operations
Learning Tool Architecture
All the above modules focuses on the various morphological operations.Users belonging
to other disciplines can also easily learn about what is morphological image processing
through this interactive tool.
Boundary Extraction
Basic DIP concepts Binary Image Region Filling
What is Morphological Dilation,Erosion Thinning
Image Processing. Gray Image Thickening
Real Time Usage Dilation,Erosion Watershed
Structuring Element Opening Tophat
Closing Morphological gradient
It is well known that there are many different learning styles. Some people learn
better by reading books, others through a verbal explanation, while others learn most
effectively through application. The tool was designed to focus on a visual learning style.
Through the module What’s it one can learn all the basic morphological image processing
concepts such as
All these contents are represented by slides created using the tool MS Powerpoint
presentation.. As it is an interactive system users can learn all those concepts in a single
click..This system was developed using Interactive Data Language (IDL).Example screen
shot is illustrated in the following figure
1. Input Image
2. Type of image(Binary or Gray Scale)
3. Structuring element
4. Type of morphological operation(Dilation,Erosion,Opening,Closing)
5. Output display mode
Code generator module provides an user friendly environment.Thus user can select input
image in a single button click.Supported input images are *.jpg,*.tiff,*.dat,*.gif,*.bmp.
From the drop down menu we can select the type of morphological operations,output
display mode ,structuring element type.Image type(Binary or Gray scale) option by
choosing radio button. If the selected input image is gray scale or color image and
morphological image type is binary then the user need not to worry about it.Our tool
provides an interactive way to convert gray scale or color image to binary image. With
this inputs our system generates program in IDL. The code is as generic as possible. User
can also extend this program by opening it in IDL development environment,run or save
this program by clicking the button Edit,Run or Save in the code generator module.By
running the code one can understand what happens when morphological operations
applied to an image.Following figure shows the interface that helps to convert Gray scale
or color image to binary.
Interactive Data Language(IDL)
We developed our System in IDL. The main arguments in favor of using this language
are:
1) IDL is platform neutral, hence well adapted to the diversity of the users
community;
2) Array oriented language- as all images are in array format this feature helps
to handle images with fewer lines of code.
3) Multhreading – Increases execution speed
4) Many image processing routines are available
5) Language dedicated for creating image processing coding.
Code for dilation operation
pro DilationSample
inputImage=read_image('F:\TEST_LENAbinary.bmp')
dim=size(inputImage,/dimensions)
colSize=dim(0)
rowSize=dim(1)
window,1,xsize=colSize,ysize=rowSize,Title='Input Image'
tv,inputImage
SE=[[1,1,1],[1,1,1],[1,1,1]]
outputImage=DILATE(inputimage,se)
window,2,xsize=colSize,ysize=rowSize,Title='Output Image'
if (dim(0) eq 3) then tvscl,outputImage,true=1 else tvscl,outputImage
End
Conclusion: