Tuesday, July 26, 2016

life-of-engineering-student

Foreword (by Developer of this blog) : I have been writing the articles to motivate young students for a couple of years. It is my passion to write articles related to inspirational and technical. One day, I asked my student to write an article about Life of an Engineering student in both aspects (academic and professional). As a result, she has written this wonderful article. I am thankful for her contribution to motivate the engineering buddies by this article. I hope that this article will give valuable suggestions to little buddies to get success in their life in both aspects(academic and professional).

Life of Engineering Student

I am writing this article to inspire and motivate the little engineering buddies. It depicts my insight about how I have completed the Engineering Graduation and entered into software company. It reveals facts behind the success story of a graduate student academically and professionally.
Lateefa B.Tech
Program Analyst
Cognizant Technology Solutions
Kochi, Kerala

So here is something that I always wrote of in my diary but now when I am asked to write about it to reach out to my juniors, I am falling short of words. College life is not as it is shown in movies there are perks to it as well pitfalls. On entering college each student finds a new freedom, one which they never had before. This blinds them in a way that most of them don’t realize the importance of being in one. College life has more to it than just fun and I know most would disagree. But truly there is a treasure of knowledge which most of us forget to cherish.

It’s the place where new ideas pop up, zeal to learn awaken our minds. College was where I found my apple of wisdom, I have learnt many lessons and here are a few interesting one for you guys. College has taught me the importance of knowledge and when I say that I mean not knowing but understanding what you learn. There will be many subjects and many extra-curricular activities but there should always be one particular thing that fascinates you the most. If you don’t have one its fine, you can end up being the jack of all trades. But at the end what matters is what knowledge you have gained and what have you taken from the 50 minutes lecture. Once a wise men (profoundly one of my dedicated lecturer in college) said “That no matter how bad a lecture is there will always be at least one new thing you could learn from it”.

When he told that to all my fellow classmates along with me none of us understood the depth of what it meant. But we later realized what he meant was there is always something to learn from a bad book or a bad lecture. In college you get the time to explore new stuff (no matter to which subject it be related to) and you get a practical experience of what you have learnt but this comes only when you put efforts. Hard work always pays of it has paid off for me. I was an average student in college, but enthusiastic enough to question and speak out what I felt and what concerned me it may be regarding subject or the way it was thought. You could only be confident later in important situations in life if you speak out your doubts and thoughts. College provide many opportunities for this. So be always enthusiastic to learn new things. College is the best place to get good genuine friends.

The first year of college is all basics like starters in your meal. Make sure you get your basics right because they are the foundation of what you are going to learn in the next three years of engineering life. Fall in love with coding if you are Computer Science student and non CS folks can also do it because coding is something that fascinates all. I still remember how happy I felt when I executes my first C program. The simple sentence “Hello world” displayed on the screen and made my day since then I never turned back. The more you learn the more excited it gets. It builds a hunger for coding. The happiness of finding a syntactical error that was stopping the entire code from being executed or the happiness in getting a bug fixed or executing your own piece of code (small or big) gives more pleasure. That’s what college gave me a new pleasure. The second important thing that each student should do is: true to yourself, study for yourself, do whatever you do, knowing how it would impact your future. Would it make a difference in life and if yes then think in a good way or in a bad way?

The ultimate goal is to get a job in campus selections for those who want to get into Software Industry. All the tests for 6 or 7 subjects, the labs, the practical exams, the mid exams, the scores, the late night studies and the external exams etc..... all for what? To secure a job in on campus placements, and this goal is realized by most of the students only at the end of third year of college. Then starts the cycle of aptitude learning, reasoning and English (RSWL) skills. It’s the first step towards clearing the initial screening or written exam. After you clear this, you will have to go through technical and HR round. For few MNCs, you will also have other rounds like group discussions, stress interviews etc.

A good preparation is required for this. The college arranges third party trainers to bloom the student in all these aspects including personality development. One should simply learn and practice what has been taught to them and coming to English, one can never master a language in a day, so the best way is to try to speak English with friends while in college, at least during English class. And reading books, no matter to which genre it belongs to, also improves the language skills.

And moving on to the actual experience in corporate life. At first all will be new, you will definitely feel as an outcast but trust me that’s how everyone feels when they are new. so, you are not an exception. You might not know what to do in the beginning and might end up making blunders in the project. You never take such things to heart. Though it would make you feel as a complete idiot, but it will pass. Stop blaming yourself and then one day you will laugh on these incidents. That will always remember that you couldn’t be a genius at the first day of your work.

“Remember It’s not how you fall that matters, what matters is how well you brush up yourself and get back up!!”



See also:
1. Article-on-research-for-phd-scholars
This article will be helpful to the students who want to join PhD and already joined PhD students.

Follow us on Facebook :



dealing-with-matrices-matlab

dealing-with-matrices-matlab

By reading this article, one can easily understand the working of Matrices in Matlab. In many cases,especially in the case of research, we need to perform operations on matrices. Matlab provides very simple commands (statements) for performing operations on matrices. This article explains different operations on matrices. In addition, it explains different operations on 3D arrays.

In Image Processing, an image can be considered as a matrix. The operations that can be performed on matrices, can also be applicable for images. Here, we explain the different matrix operations in image processing with neat diagrams.

creating 1D array

By simply assigning some values separated by commas within the square brackets to a variable, say 'a', 'a' is called a vector. Values in vector can be accessed by a(i). i varies from 1 to length of vector. Example is shown below.

creating 2D array (Matrix)

By simply assigning some values separated by commas and semicolons within the square brackets to a variable, say 'a', 'a' is called a Matrix. Values in Matrix can be accessed by a(i,j). i, j refers rows and columns of matrix. Example is shown below.
Follow us on Facebook :



Wednesday, July 20, 2016

image-gradients

Image Gradients

By studying this article, one can understand the meaning of image gradient and role of gradient values in edge detection. The gradient of pixel represents the change of the intensity values in both X and Y directions.

Gradient of image in X – Direction

  • The gradient of image in X-direction is calculated by computing change of each pixel with respect to X-direction.
  • Change of each pixel in X- direction is calculated as follows
    P(x, y) = P(x, y+1) – P(x, y-1) (right pixel – left pixel)
% Matlab program to find X-gradient image for the given image
clear all; clc;

%read a color image and convert it to gray
img = imread('E:images/face.jpg');
img = rgb2gray(img);
 
%find the size of image
[rows,cols] = size(img);
 
%converting image into double for performing operations
img=double(img);
 
%initialization xgradient matrix 'xgrad' with image 'img'
xgrad=img;
 
%calculating gradient image in X-direction
for i=1:rows
    for j=2:cols-1
        xgrad(i,j) = abs(img(i,j+1) - img(i,j-1));  
       
    end
end
 
 
figure, imshow(uint8(img)),title('given image');
figure, imshow(uint8(xgrad+22)), title('X-gradient image');

The output of the above code is shown below:

Gradient of image in Y – Direction

  • The gradient of image in Y-direction is calculated by computing change of each pixel with respect to Y-direction.
  • Change of each pixel in Y-direction is calculated as follows
    P(x, y) = P(x+1, y) – P(x-1, y) (upper pixel – lower pixel)
% Matlab program to find Y-gradient image for the given image
clear all; clc;

%read a color image and convert it to gray
img = imread('E:images/face.jpg');
img = rgb2gray(img);
 
%find the size of image
[rows,cols] = size(img);
 
%converting image into double for performing operations
img=double(img);
 
%initialization ygradient matrix 'ygrad' with image 'img'
ygrad=img;
 
%calculating gradient image in X-direction
for i=2:rows-1
    for j=1:cols
        ygrad(i,j) = abs(img(i+1,j) - img(i-1,j));  
       
    end
end
 
 
figure, imshow(uint8(img)),title('given image');
figure, imshow(uint8(ygrad+22)), title('Y-gradient image');

The output of the above code is shown below:

Popular Articles:

1. matlab-cropping-binary-image-algorithm

Objective of the Program: Program takes a black and white image as input. It removes the black portion and gives the white portion of the image.

2. Working-with-ROI-of-image-using-Matlab

Objective of the Program:The part of the image, on which you have interest to work out, is called Region of Interest (ROI). In another words, selected subset of image is called ROI. In some contexts, you want to apply operations on ROI of image rather than the entire image. To achieve this, generally people extract the ROI from the image, store it in another variable and then apply operations on ROI. If you want to apply your operations on ROI without extracting from the image, it is bit difficult. This article will explain the performing the operations on ROI without extracting from the image. In this context, the ROI part of image is affected rather than the entire image.

3. Insertion Sort Matlab Program:

Insertion sort is very simple algorithm and easy to implement. It works well when the input size is less. If the input size is more, insertion sort is not efficient(quick sort or merge sort works good when the input size is big).

Wednesday, July 13, 2016

reading-frames-from-video

reading-frames-from-video and store in cell arry

By studying this, one can understand the logic of reading frames from video and store them into cell array in matlab. I tested this program by using MATLAB 2012b. To run the following code, download the video using this link : download

%Matlab program to read frames from video and store all frames into a cell
%array.
% input -  path of the video
% output - cell array contains all frames in video


clear all; clc;
input = 'E:/videos/crosscut.avi';

%create object of videoReader
vid = VideoReader(input);

%find number of frames in video
no_of_frames = vid.NumberOfFrames;
fprintf('number of frames in video : %d \n', no_of_frames);

%create cell array with size of 'no_of_frames'
output = cell([1,no_of_frames]);

%read frame by frame and store it into a cell array 'output'
for i=1:no_of_frames
    frame = read(vid,i);
    output{i} = frame;
end

%convert all frames in cell array 'output' to gray color
for i=1:no_of_frames
    output{i} = rgb2gray(output{i});
end

%displaying all frames in cell arry 'output'
for i=1:6
    imshow(output{i});
    pause(0.1);
end


Output :

   number of frames in video : 100 

Popular Articles:

1. matlab-cropping-binary-image-algorithm

Objective of the Program: Program takes a black and white image as input. It removes the black portion and gives the white portion of the image.

2. Working-with-ROI-of-image-using-Matlab

Objective of the Program:The part of the image, on which you have interest to work out, is called Region of Interest (ROI). In another words, selected subset of image is called ROI. In some contexts, you want to apply operations on ROI of image rather than the entire image. To achieve this, generally people extract the ROI from the image, store it in another variable and then apply operations on ROI. If you want to apply your operations on ROI without extracting from the image, it is bit difficult. This article will explain the performing the operations on ROI without extracting from the image. In this context, the ROI part of image is affected rather than the entire image.

3. Insertion Sort Matlab Program:

Insertion sort is very simple algorithm and easy to implement. It works well when the input size is less. If the input size is more, insertion sort is not efficient(quick sort or merge sort works good when the input size is big).

Tuesday, July 12, 2016

Insertion-sort

Insertion Sort Matlab Program

By studying this, one can understand the logic of insertion sort. Insertion sort is very simple algorithm and easy to implement. It works well when the input size is less. If the input size is more, insertion sort is not efficient(quick sort or merge sort works good when the input size is big).

% Program for Insertion sort 
% Author : M Naveenkumar , Research Scholar , NIT Trichy, Tamilnadu, India
% n = input size (array size)

clear all; clc;
n = input('Enter n value:');

% create an array (a) with size 'n' and filled with zeros
a(1,n)=0;

% reading 'n' values to array (a)
for i=1:n
    string = 'value:';
    a(1,i) = input(string);
end

disp ('_______________________________________________________________');

for j=2:n
    key = a(1,j);
    
    % insert 'key' into already sorted array a[1.... j-1]
    i = j-1;
    while (i>0 && a(1,i)> key) 
        a(1,i+1) = a(i);
        i = i-1;
    end 
    a(1,i+1) = key;
    
    disp ('.................................................');
    fprintf('At j =%d:\n',j);
    disp(a);
end

disp ('_______________________________________________________________');
disp('sorted elements:');
disp(a);

Output :


Enter n value:6
value:2
value:1
value:9
value:5
value:7
value:8
_______________________________________________________________
.................................................
At j =2:
     1     2     9     5     7     8

.................................................
At j =3:
     1     2     9     5     7     8

.................................................
At j =4:
     1     2     5     9     7     8

.................................................
At j =5:
     1     2     5     7     9     8

.................................................
At j =6:
     1     2     5     7     8     9

_______________________________________________________________
sorted elements:
     1     2     5     7     8     9


Popular Articles:

1. matlab-cropping-binary-image-algorithm

Objective of the Program: Program takes a black and white image as input. It removes the black portion and gives the white portion of the image.

2. Working-with-ROI-of-image-using-Matlab

Objective of the Program:The part of the image, on which you have interest to work out, is called Region of Interest (ROI). In another words, selected subset of image is called ROI. In some contexts, you want to apply operations on ROI of image rather than the entire image. To achieve this, generally people extract the ROI from the image, store it in another variable and then apply operations on ROI. If you want to apply your operations on ROI without extracting from the image, it is bit difficult. This article will explain the performing the operations on ROI without extracting from the image. In this context, the ROI part of image is affected rather than the entire image.

Python-environment-for-deep-learning-in-windows

Python is increasingly becoming a popular programming language for machine learning and deep learning. If you want to use python for train...