Posts

Build in Functions in Matlab

Image
  A built-in function is  part of the MATLAB executable . MATLAB does not implement these functions in the MATLAB language. Although most built-in functions have a . m file associated with them, this file only supplies documentation for the function. Matlab comes preloaded with many built-in functions that are very easy to use.  To use a function, type the name of the function in the command window followed by a parentheses. After the parentheses you can list the input arguments, which are seperated by comma’s. After you have entered the input arguments, close the expression with a parenthesis. Function inputs can range from one to many, and the some even take vectors or matrices as inputs. Matlab also has built-in matrix functions that come in very handy. We will explore some of the more common ones below. Our first example involves the use of the cosine function. The cosine function can take a vector or matrix of inputs and produces a vector or matrix of outputs. Rememb...

Using MATLAB as a calculator. Matlab Syntax

  As an example of a simple interactive calculation, just type the expression you want to evaluate. Let’s start at the very beginning. For example, let’s suppose you want to calculate the expression, 1 + 2 × 3. You type it at the prompt command ( >> ) as follows, >> 1+2*3 ans = 7 You will have noticed that if you do not specify an output variable, MATLAB uses a default variable ans , short for answer , to store the results of the current calculation. Note that the variable ans is created (or overwritten, if it is already existed). To avoid this, you may assign a value to a variable or output argument name. For example, >> x = 1+2*3 x = 7 will result in x being given the value 1 + 2 × 3 = 7. This variable name can always be used to refer to the results of the previous computations. Therefore, computing 4 x will result in >> 4*x ans = 28.0000 Examples: 7 / 0 % Divide by zero sin ( pi / 2 ) % sine of angle 90 o

Introduction to Matlab

Image
  The name MATLAB stands for MATrix LABoratory. MATLAB was written originally to provide easy access to matrix software developed by the LINPACK (linear system package) and EISPACK (Eigen system package) projects. MATLAB has many advantages compared to conventional computer languages (e.g., C, FORTRAN) for solving technical problems. MATLAB is an interactive system whose basic data element is an array that does not require dimensioning. The software package has been commercially available since 1984 and is now considered as a standard tool at most universities and industries world wide MATLAB is a programming language developed by MathWorks. It started out as a matrix programming language where linear algebra programming was simple. It can be run both under interactive sessions and as a batch job Local Environment Setup Setting up MATLAB environment is a matter of few clicks. The installer can be downloaded from Online Source MathWorks provides the licensed product, a trial version...
Image
Multiple face detection Face is the primary index for imparting the identity. Automated face detection is one of the interesting field of research. Face detection of digital image has acquired much importance and interest in last two decades, which has applications in different fields. Computerizing the process needs many image processing methods. In this paper, a new face detection approach using color base segmentation and morphological operations is presented. The algorithm uses color plane extraction, background subtraction, thresholding, morphological operations (such as erosion and dilation), filtering (to avoid false detection). Then particle analysis is done to detect only the face area in the image and not the other parts of the body. The color planes are extracted using vision module the RGB color space is converted into suitable color space such as HSV and YCbCr. The algorithm can be used to detect both single as well as multiple persons in a image. Experimental results...

eyes detection in matlab step by step explanation with source code

Image
Eyes detection what is eye detection: To detect and track eye images with complex background, distinctive features of user eye are used. Generally, an eye-tracking and detection system can be divided into four steps: Face detection, eye region detection, pupil detection and eye tracking. To find the position of pupil, first, face region must be separated from the rest of the image using mixture of Gaussian, this will cause the images background to be non effective in our next steps. We used the horizontal projection obtained from face region, to separate a region containing eyes and eyebrow. This will result in decreasing the computational complexity and ignoring some factors such as bread. Finally, in proposed method points with the highest values * of are selected as the eye candidate's. The eye region is well detected among these points. Color entropy in the eye region is used to eliminate the irrelevant candidates. In the next step, we perform eye tracking. In the propo...

to blurr face step by step guide

Image
FACE BLURR Blurr an Image: A blur is a shape or area which you cannot see clearly because it has no distinct outline or because it is moving very fast.    When a thing blurs or when something blurs it, you cannot see it clearly because its edges are no longer distinct.    Steps to blurr the image: Step 1: Import the image to the working directory Step 2. Read the image by using imread(); command Step 3: Initialize variable as much you want the blurr level of image e.g 13,50… Step 4: Initialize variable by using any name than assign fspecial function which will be like  h  = fspecial('gaussian', hsize , sigma )  returns a rotationally symmetric Gaussian lowpass filter of size  hsize  with standard deviation  sigma  (positive). Step 5. blurred = imfilter(subImage,H); filters the multidimensional array  A  with the multidimensional filter conv. The array   ...

image format conversion with source code

Image
Image format conversion Step1. Just read the image Step2. Fullfile() function Build full file name from parts fullfile  replaces all forward slashes ( / ) with backslashes ( \ ) on Windows. On UNIX platforms, the backlash ( \ ) character is a valid character in file names and is not replaced. fullfile  does not trim leading or trailing separators.  fullfile  collapses inner repeated file separators unless they appear at the beginning of the full file specification.  fullfile  also collapses relative directories indicated by the dot symbol, unless they appear at the end of the full file specification. Relative directories indicated by the double-dot symbol are not collapsed. Step 3. Just write the image of any extension.