<< Chapter < Page Chapter >> Page >

Introduction

To achieve scale, translation and rotation invariance in object recognition, we need to identify intrinsic traits of the object that are not affected by these operations. Moment of Inertia is mass property of a rigid body that determines the torque needed for a desired angular acceleration about an axis of rotation. Moment of inertia depends on the shape of the body and thus can be used as parameter for simple object recognition.

Approach

Moment of Inertia can be calculated if given centroid of the object and it’s mass.

A dog sitting on a couch.

I is Moment of Inertia, m is the unit mass at a location of distance r from the centroid, and r is the distance from the centroid.

However a two-dimensional image does not have the mass to be used for calculation of Moment of Inertia. We can instead use the intensity of each pixel as mass of a particle located at the pixel. With that, we can calculate the Moment of Inertia of our images. Since we are only concerned with the shape of the object, we can convert the images to black and white (with intensity of each pixel being either 0 or 1) and consequently the intensity of each pixel can only take on 2 values and the Moment of Inertia can be much more easily calculated given this simple duality.

Actual Formula used-

A dog sitting on a couch.

Diagram of Process Used to Calculate Moment of Inertia-

Diagram

Code

Main Functions Used in Matlab:

  • im2bw- change image to black and white
  • bwboundaries- getting boundary indices of object
  • regionprops- getting centroids

Code.

Matlab code

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, A comparison of object recognition using the hough transform and the properties of moment of inertia. OpenStax CNX. Dec 16, 2014 Download for free at http://legacy.cnx.org/content/col11727/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'A comparison of object recognition using the hough transform and the properties of moment of inertia' conversation and receive update notifications?

Ask