0% found this document useful (0 votes)
61 views4 pages

Kyung Hee University Digital Signal Processing Course Home Work No. 1 Team Name SUHT Team Member Abdul Sattar Chu, Doo Hee

The document discusses a digital signal processing homework assignment. The team created images with increasing frequency rows and applied trigonometric functions. They shifted, scaled, and added sine functions to generate the images. An audio file was also created from one image, with each row representing 0.0625 seconds of sound at a specific frequency. The results section shows modified images with phase shift, increased period, combination of sine and cosine, tangent substitution, and zeroing out the function.

Uploaded by

Abdul Sattar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
61 views4 pages

Kyung Hee University Digital Signal Processing Course Home Work No. 1 Team Name SUHT Team Member Abdul Sattar Chu, Doo Hee

The document discusses a digital signal processing homework assignment. The team created images with increasing frequency rows and applied trigonometric functions. They shifted, scaled, and added sine functions to generate the images. An audio file was also created from one image, with each row representing 0.0625 seconds of sound at a specific frequency. The results section shows modified images with phase shift, increased period, combination of sine and cosine, tangent substitution, and zeroing out the function.

Uploaded by

Abdul Sattar
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Kyung Hee University Digital Signal Processing Course Home Work No.

1 Team Name SUHT Team Member Abdul Sattar Chu, Doo hee

Introduction and Discussion

In this home work we have created some images whose rows show different frequency in the increasing order. We have played with different trigonometric and or sinusoidal function. For each Image function total size is 512 by 256. We have applied time shifting and scaling properties on the sin function. The images for time scaling, addition and shifting have been show in the result and conclusion section. We have also created audio file from the image. We chose an image whose dimension is 500 by 599. Width dimensions of 500 and height of the pixels by 599. Since the sampling frequency of audio is set to be 8000samples/sec, the file is 500X599/8000 = 37.43 seconds long. That is, each row is 0.0625 second long. The 0-th line is DC(no change) is frequency 0, while the frequency of the kth line with k cycles becomes k/500*8000 Hz. Then, the highest frequency is 599/500*8000 Hz ~ 9.5kHz. If there are k cycles in 500 samples (=0.0626sec), then there are cycles in a second.

Results and Conclusion


// 3. Calculate pixel values of each row with different frequency and write in the file. long k,x,K; double ff; for(k=0;k<Y;k++){ K = k/10; for(x=0;x<X;x++){ // calculate a line with frequency k fx[x]=(unsigned char)(100.*sin(2.*PHI*(double)K*(double)x/(double)X+100.)); //only change this one } fwrite(fx,X,1,fff); } // k loop fclose(fff); }

<f512_256_+200_shift> Phase shift 100.*sin(2.*PHI*(double)K*(double)x/(double)X+100.) =>100.*sin(2.*PHI*(double)K*(double)x/(double)X+200.) ( )

<f512_256_4_period> 100.*sin(2.*PHI*(double)K*(double)x/(double)X+100.) =>100.*sin(2*4.*PHI*(double)K*(double)x/(double)X+100.) ( )

<f512_256_combi> 100.*sin(2.*PHI*(double)K*(double)x/(double)X+100.) =>100.*sin(2.*PHI*(double)K*(double)x/(double)X+100.)+ 100.*cos(2.*PHI*(double)K*(double)x/(double)X+100.) ( ) ( )

<f512_256_tan> 100.*sin(2.*PHI*(double)K*(double)x/(double)X+100.) =>100.*tan(2.*PHI*(double)K*(double)x/(double)X+100.) ( )

<f512_256_zero> 100.*sin(2.*PHI*(double)K*(double)x/(double)X+100.) =>0*100.*sin(2.*PHI*(double)K*(double)x/(double)X+100.) ( )

You might also like