Wootz~
Finally, I finished my assignments before "bang gang" just now!! ;p
It's sorta like a great achievement for finishing this by myself
I was wondering if C++ can read image and even manipulate images
when my supervisor was telling me about the tasks.
Ranting like mad since yesterday because I didnt have any idea on how to do it.
But then, chiang chiang...
*shareshare*
although these are just the kacang in this imaging field
Below are the manipulated images with c++ in Linux
Finally, I finished my assignments before "bang gang" just now!! ;p
It's sorta like a great achievement for finishing this by myself
I was wondering if C++ can read image and even manipulate images
when my supervisor was telling me about the tasks.
Ranting like mad since yesterday because I didnt have any idea on how to do it.
But then, chiang chiang...
*shareshare*
although these are just the kacang in this imaging field
Below are the manipulated images with c++ in Linux

By using the thresholding method, I could change the colours of the pixels into just black and white, with the threshold value of 128 in 8-bit system. chim leh ;p

Image erosion with structuring element of [0,1,0,1,1,1,0,1,0]3x3.
Erosion is one of the two basic operators in the area of mathematical morphology, the other being dilation. It is typically applied to binary images, but there are versions that work on greyscale images. The basic effect of the operator on a binary image is to erode away the boundaries of regions of foreground pixels(i.e. white pixels, typically). Thus areas of foreground pixels shrink in size, and holes within those areas become larger.

Image dilation with structuring element of [0,1,0,1,1,1,0,1,0]3x3.
Dilation is one of the two basic operators in the area of mathematical morphology, The basic effect of the operator on a binary image is to gradually enlarge the boundaries of regions of foreground pixels (i.e. white pixels, typically). Thus areas of foreground pixels grow in size while holes within those regions become smaller.
Convolution method.Basically it's of the same concept with dilation and erosion. The difference is that it has a weightage kernel where all the elements in the kernel have a total up to 1. Instead of having all the boolean numbers/binary which are only 1 or 0.
I couldn't really imagine that these simple functions in photoshop are actually consuming like hundreds of command lines.
Yea, I did learn something in this internship.
Will SHOW OFF more of my projects soon. ^^





0 comments:
Post a Comment