<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE document PUBLIC "-//CNX//DTD CNXML 0.5//EN" "http://cnx.rice.edu/technology/cnxml/schema/dtd/0.5/cnxml_plain.dtd">
<document xmlns="http://cnx.rice.edu/cnxml" xmlns:md="http://cnx.rice.edu/mdml/0.4" xmlns:bib="http://bibtexml.sf.net/" id="id12621382">
<name>Idealized Data for Motion Detection</name>
<metadata>
  <md:version>1.3</md:version>
  <md:created>2005/12/07 22:08:03 US/Central</md:created>
  <md:revised>2005/12/23 13:16:57.650 US/Central</md:revised>
  <md:authorlist>
      <md:author id="grantlee">
      <md:firstname>Grant</md:firstname>
      <md:othername>S</md:othername>
      <md:surname>Lee</md:surname>
      <md:email>grantlee@rice.edu</md:email>
    </md:author>
      <md:author id="sgupta13">
      <md:firstname>Siddharth</md:firstname>
      
      <md:surname>Gupta</md:surname>
      <md:email>sgupta@rice.edu</md:email>
    </md:author>
      <md:author id="vpadmanabhan">
      <md:firstname>Veena</md:firstname>
      
      <md:surname>Padmanabhan</md:surname>
      <md:email>veena@rice.edu</md:email>
    </md:author>
      <md:author id="heatherj">
      <md:firstname>Heather</md:firstname>
      <md:othername>E</md:othername>
      <md:surname>Johnston</md:surname>
      <md:email>heatherj@rice.edu</md:email>
    </md:author>
  </md:authorlist>

  <md:maintainerlist>
    <md:maintainer id="grantlee">
      <md:firstname>Grant</md:firstname>
      <md:othername>S</md:othername>
      <md:surname>Lee</md:surname>
      <md:email>grantlee@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="sgupta13">
      <md:firstname>Siddharth</md:firstname>
      
      <md:surname>Gupta</md:surname>
      <md:email>sgupta@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="vpadmanabhan">
      <md:firstname>Veena</md:firstname>
      
      <md:surname>Padmanabhan</md:surname>
      <md:email>veena@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="heatherj">
      <md:firstname>Heather</md:firstname>
      <md:othername>E</md:othername>
      <md:surname>Johnston</md:surname>
      <md:email>heatherj@rice.edu</md:email>
    </md:maintainer>
    <md:maintainer id="richb">
      <md:firstname>Richard</md:firstname>
      <md:othername>G.</md:othername>
      <md:surname>Baraniuk</md:surname>
      <md:email>richb@rice.edu</md:email>
    </md:maintainer>
  </md:maintainerlist>
  
  <md:keywordlist>
    <md:keyword>data selection</md:keyword>
  </md:keywordlist>

  <md:abstract>Details on what kinds of data are used to test our system, and how they were selected.</md:abstract>
</metadata>
<content>
<para id="id12543214">The main purpose of our device is to detect velocity of motions in a movie file, and it is helpful to understand the mechanism in idealized cases. It is too complicated to come up with appropriate algorithms for all possible input data at once, and we want to look at the simpliest cases first. Our choice of data is a simulated movie. Reducing to bare bones, a blank, constant background(noise-free) with a single object moving across the screen is a good start. </para>
<section id="makingframes"><name>Making Frames</name>
<para id="element-540">
Manual coding of movies was done in MATLAB, using matrices of zeros and ones. zeros represents background, and ones represent an object. For simplicity, movies are in grayscale (black for zeros and white for ones).</para><example id="element-4"><figure id="element-583"><name>Matrix To Frame</name>
<media type="image/png" src="matrixpicture.PNG"/>
<caption>Command 'imagesc(matrix)' on MATLAB will give us a simple picture</caption></figure></example><para id="element-655">Looking at above matrix, different shapes can easily be made by arranging the ones in different layouts. We have created square, vertical rectangle, horizontal rectangle, triangle, and circle shapes. Once a desired image with an object is created, the 'getframe' command in MATLAB converts images to frames.</para>
</section>
<section id="movies"><name>Making Movies</name>
<para id="element-201">
To make a movie of a "moving" object (represented as a group of ones), our program can simply create multiple frames with the group of ones in different locations. One can move most any object in any direction in a reasonable frame size. However, creating a movie with non-axial motion can be very tedious in MATLAB, so we chose motions along the horizontal and vertical axis.</para><note>  For our purpose, we set the screen size to be 256x256. Each pixel corresponds to one entry in the matrix.</note><example id="element-901"><figure id="element-503"><name>Moving Square</name>
<media type="image/png" src="square-movein.png"/>
<caption>Square moving into the screen</caption></figure><figure id="element-212"><name/>
<media type="image/png" src="square-in.png"/>
<caption>Square in the screen</caption></figure></example><para id="element-632">Different velocities can be achieved by varying number of pixels moved over per frame. In other words, within the same number of frames, a movie with a faster object will have its object moved over further across the screen than one with a slower object.</para><example id="element-837"><figure id="element-561"><name>Moving Triangle With Different Speeds</name>
<media type="image/png" src="triangle10pf.PNG"/>
<caption>Triangle moving at 10 pixels per frame</caption></figure><figure id="element-133"><media type="image/png" src="triangle50pf.PNG"/>
<caption>Triangle moving at 50 pixels per frame</caption></figure></example>
</section>
</content>
</document>
