Posts

New Post

Markov Chains || Step-By-Step || ~xRay Pixy

Image
Learn Markov Chains step-by-step using real-life examples. Video Chapters: Markov Chains 00:00 Introduction 00:19 Topics Covered 01:49 Markov Chains Applications 02:04 Markov Property 03:18 Example 1 03:54 States, State Space, Transition Probabilities 06:17 Transition Matrix 08:17 Example 02 09:17 Example 03 10:26 Example 04 12:25 Example 05 14:16 Example 06 16:49 Example 07 18:11 Example 08 24:56 Conclusion

Programming in C++

Image
Decision Statements: Conditional Statements

Conditional Statements |Programming in C++| ~xRay Pixy

Image

Linear Congruential Generator | Modeling and Simulation |

Image
Random Number Generator Methods in Modeling and Simulation 1.) Middle Square Method for Random Number Generation (discussed before)          Middle Square Method for Random Number Generation 2.) Linear Congruential Generator          Linear Congruential generator |Modeling and Simulation|~xRay Pixy Linear Congruential Generator is the most widely used method for Random Number Generation. Linear Congruential Generator Produce a sequence of integers between 0 and m-1. Generate a Sequence of Random Numbers for (a, c, m) = (1, 5, 13) and Z0 = 1 Question For you Video :  Linear Congruential generator |Modeling and Simulation|~xRay Pixy Video Link https://youtu.be/h0qCg8hBfcE

Operator Precedence & Operators Associativity

Image
Operator Precedence  in C++ Operator precedence determines which operator is performed first in an expression with more than one operator.  In C++, we use the Operator Precedence rule to solve the problem like this- (5 + 8 * 3). Precedence Determine the order in which the operators are performed. An operator with Higher Precedence is evaluated before the operator with lower precedence. https://youtu.be/5_3IN1NHa9k Video: Operator Precedence in C++ Operator Associativity Chart Multiply (*) operator has higher precedence than addition operator (+). Questions for your Practice 1.) 7 + 3 * 2                                             Ans.  13 2.) 10 + 20 * 30 Ans.  610 3.) 100 / 10 * 10 Ans.  100 4.) 100 + 200 / 10 – 3 * 10                Ans.  90 5. ) 10 /...

Loop Optimization Techniques in Compiler Design

Image
LOOP Optimization Rules Every Programmer must follow before the optimization of any source code.  1.) Loop transformation technique.  2.) Help to reduce optimize the execution time of a program. 3.) Basically, remove the iterations.  4.) Loop Unrolling increase the program speed by eliminating loop control instructions. Loop Optimization is a Machine Independent Technique. We can do Code optimization in the loops of the program. In loop optimization, code optimization is performed on inner loops. Methods of Loop Optimization 1.) Code Motion 2.) Loop Invariant Method 3.) Loop Jamming 4.) Loop Unrolling 5.) Strength Reduction Code Motion: Technique that moves the code outside the loop. Loop Jamming: Combining two or more loops in a single loop. Code Strength: Expressions that consumes CPU time and memory should replace with cheaper expressions. Replace Expensive Expressions (i.e., *) with cheaper ones (i.e., +) Vidoe:  ht...

What is the difference between & and &&?

Operators are the basic concept of any programming language, used to build a foundation in programming. Different Types of Operators are: - 1. Arithmetic Operators ( +, -, *, /, % ) 2. Relational Operators ( =, !=, <, >, >=, <= ) 3. Logical Operators (&& AND, || OR, ! NOT ) 4. Assignment Operators (=, +=, -=, *=, /=, %=) 5. Bitwise Operators ( & Bitwise AND, << Left Shift, >> Right Shift, | Bitwise OR ) 6. Miscellaneous Operators ( sizeof, &pointer, *pointer, ? condition ) Difference between & and &&: - && = AND OPERATOR For example, here it is used a, b (a && b) AND: Used to check if both the operands(a,b) are true. & = Bitwise AND For example, ( a & b ) Bitwise AND: Converts the value of both the operands into binary form and performs AND- operation bit by bit.

What is multi-block LBP?

Image
Multi-Block LBP is used to encode the rectangular region’s intensity by using local binary patterns. Local Binary Pattern (LBP) looks at nine pixels at a time (i.e., 3x3 window of image = 9-pixel values and 2^9 = 512 possible values). By using Local Binary Pattern we can turn this 3x3 matrix into a single value. LBP focus on the very local neighborhood like 3x3. Multi-block LBP has been used for larger-scale structure. With the help of Multi-Block Local Binary Pattern (MB-LBP), 256 types of different binary patterns can be formed for edge detection and face detection from still images. The computation of the local binary pattern on the 3x3 matrix is shown in Figure. I used MB-LBP For Face Detection.

What are the best algorithms for face detection in Matlab?

Image
The best algorithms for face detection in Matlab = Viola-Jones Algorithm Face from the different digital images can be detected. The vision. CascadeObjectDetector uses the Viola-Jones algorithm to detect people’s Faces, Noses, Eyes, Mouth or upper body. The Cascade Object Detector build into MATLAB to detect the facial features from a digital image. Detects the left and right eyes separately. Detects the mouth. Detect the objects using the viola jones algorithm. Detect a pair of eyes. Detects faces that are upright and forward-facing. For Face detection: faceDetector=vision.CascadeObjectDetector('FrontalFaceCART'); For Eyes detection: faceDetector=vision.CascadeObjectDetector('EyePairBig’); I Created a Face Detection system using Viola- Jones algorithm. Book :  Face and Facial Expression Recognition LINK :  Face Doctor - Viola Jones LINK Project | Face Detection using Polar Harmonic Transforms ~xRay Pixy

Object Detection in MATLAB

Image
Object detection is a computer vision technique for locating instances of objects in images or videos. We can recognize and locate objects of interest within a matter of moments. The goal of object detection is to replicate this intelligence using a computer. For example: in this video, I detected faces from books, newspapers, statues, soft toys using the webcam. Simple Webcam Face Detector: Book:  Face and Facial Expression Recognition Simple Webcam Face Detector in Matlab~xRay Pixy

What is the difference between disp and fprintf in MATLAB?

Image
disp ( X )  displays the value of variable X without printing the variable name. And  fprintf  Matlab function allows you to "write" information to the screen for the user to view. For example, here we display the maximum value of S using  disp  function. Here, in this video we used disp function to disply the minimum and maimum values of variable R and S. We also performed different arithmetic operations (+,-,*,/) in the MATLAB command window. What is the difference between disp and fprintf in MATLAB? For Video Click Here...

MATLAB Code for Nose Detection

Image
Face Detection Systems are used for the identification of a person from digital images. The face detection system can extract the different facial features from a digital image. A set of facial features extracted from a digital image includes eyes, nose, mouth and face region. Face recognition is a difficult task due to the different facial expressions. With the help of a face detection system presence of a human face can be detected easily. For the detection of different facial features, the Viola-Jones algorithm is used in the proposed work. To make the task more manageable, Viola-Jones requires full view frontal upright faces. Watch Video:    Nose Detection Facial FEATURES: In any recognition system, the selection of feature extraction plays a vital role. There are a lot of feature extraction techniques proposed efficiency of the proposed system is not acceptable due to the lack of appropriate feature selection. MATLAB CODE: -

Detect Facial Feature using MATLAB

Image
Face Detection Systems are used for the identification of a person from digital images. The face detection system can extract the different facial features from a digital image. A set of facial features extracted from a digital image includes eyes, nose, mouth and face region. Face recognition is a difficult task due to the different facial expressions. With the help of a face detection system presence of a human face can be detected easily. For the detection of different facial features, the Viola-Jones algorithm is used in the proposed work. To make the task more manageable, Viola-Jones requires full view frontal upright faces. Using this Matlab code you can: - Create your own face detection system - It is is easy and simple to understand. Book : Face and facial Expression Recognition MATLAB CODE FOR FACIAL FEATURE DETECTION How to Detect Facial Feature using Matlab The Algorithm used for face detection is the Viola-Jones algorithm. Different models are available...

Coronavirus vs Human Respiratory system

Image
Coronavirus  Coronavirus disease 2019 (COVID-19) is a new disease. This virus is a major problem. Coronaviruses are named for the crown-like spikes on their surface. Coronavirus disease (COVID-19) is an infectious disease caused by a new virus. The disease causes respiratory illness (like the flu) with symptoms such as a cough, fever, and in more severe cases, difficulty breathing.  What is Coronavirus?                            Coronaviruses (CoV) are a large family of viruses. How does the Virus works?   viruses work by getting inside the cells your body is made of and then hijacking them. How Do Coronavirus works?        It first infects the cells lining your throat, airways, and lungs and turns them into coronavirus factories.  Different Types of Cells in the Human Body include. Stem cell, bone cell, blood cell, skin cell, muscle cell, sex cell, c...