Embed
Email

Images to Audio

Document Sample

Shared by: huanghengdong
Categories
Tags
Stats
views:
0
posted:
1/21/2012
language:
pages:
6
Images to Audio

By Donna Jones

Outline

 Image Input

 Mathematical Calculations

 Audio Output

Image Input

 Take an image that is sent

to the Blackfin’s memory

 Find its red, green, and

blue values

 red = (rmask &

imgInput[0]) >> 10;

 green = (gmask &

imgInput[0]) >> 5;

 blue = bmask &

imgInput[0];

Mathematical Calculations

 Find frequency of the lightwave and then map it to

sound frequency

 Use these values in conjuction with the RGB values

from the image

 Use: r = 2*3.14*(fsr/FS)*(t+1);

 g = 2*3.14*(fsg/FS)*(t+1);

 b = 2*3.14*(fsb/FS)*(t+1);

 output =

((red*10000)*sinf(r*t))+((green*10000)

*sinf(g*t))+((blue*10000)*sinf(b*t));

Audio Output

 The audio is outputted from the formul

 iChannel0LeftOut = indivOutput;

 iChannel0RightOut = indivOutput;

Issues

 Can not compute an entire 64x64 image at

once, there is a delay causing a popping

sound

 Final product only analyzes one pixel, but

could maybe be expanded to an entire

picture if given more time



Related docs
Other docs by huanghengdong
Which Stage of Public school development
Views: 0  |  Downloads: 0
ArchitectureandReuse
Views: 0  |  Downloads: 0
measureSize
Views: 0  |  Downloads: 0
exam2
Views: 0  |  Downloads: 0
Newsletter_12.11.09
Views: 0  |  Downloads: 0
luke_Images
Views: 0  |  Downloads: 0
By registering with docstoc.com you agree to our
privacy policy

You are almost ready to download!

You are almost ready to download!