GithubHelp home page GithubHelp logo

dsp_hw0's Introduction

HW0: Pixel array manipulation

Brief

  • Due: 10/23 at 8am
  • Required files: results/index.md, and code/

Objective

  • Image file input/output.
  • Pixel array manipulation, ex: image flip, rotation, grey scale.

Prerequisite

  • Matlab

Pre-labs

  • Read image and show it on the screen、save as a new image.
  • Using grey_scale() function to obtain intensity image.

Tutorials

<< Image Array of Matlab >>

Each image include 3 channel: R,G,B. Size of each channel is height x width.
I = imread(filename);       => [rrr...; ggg...; bbb...] 3 dimension matrix
R = I(:,:,1);               => [rrr...] 2 dimension matrix
G = I(:,:,2);               => [ggg...]
B = I(:,:,3);               => [bbb...]
r = R(h,w);                 => r 1 pixel 
g = G(h,w);                 => g
b = B(h,w);                 => b

******** Tips ********
1.	R = I(1:height, 1:width, 1);  => 1:height = 1~height
2.	R = I(:, :, 1);                 =>” : “ = all = 1~height
3.	" a=3 " vs " a=3; "            =>without " ; " to show the result on commend window
4.	" ctrl+Enter " to run code between ” %% “
5.	" ctrl+c " to stop “ run ”
6.	using " Breakpoints " to help you debug





(Left: originla image. Right: image overlap with corners.)

Experiments

  • Complete flip.m (30%) and rotation.m code (30%).

Extra Points

  • +2 pts: If you make your code publicly available.
  • +2 pts: If you comment on pull request from students who fork the homework. Make sure you send me a screenshot of the comments to me. We can follow your discussion ourselves.
  • Other things that impress me.

Writeup

For this project, and all other projects, you must do a project report in results folder using Markdown. We provide you with a placeholder index.md document which you can edit. In the report you will describe your algorithm and any decisions you made to write your algorithm a particular way. Then, you will describe how to run your code and if your code depended on other packages. Finally, you will show and discuss the results of your algorithm. In the case of this project, show the results of your filtering algorithm (the test script saves such images already) and show some of the intermediate images in the hybrid image pipeline (e.g. the low and high frequency images, which the starter code already saves for you). Also, discuss anything extra you did. Feel free to add any other information you feel is relevant.

Rubric

  • +30 pts: Working implementation of flip.m
  • +30 pts: Working implementation of rotation.m
  • +40 pts: Writeup with several examples of image images. Each result shall include two images. One image is given by TA, and the other one is your own image.
  • +5 pts: Extra credit (up to ten points)
  • -5*n pts: Lose 5 points for every time (after the first) you do not follow the instructions for the hand in format

Noted

  • Some Matlab functions are not allowed to use , e.g. rgb2gray().
  • Code with ”%%%” is where you need to write by yourself.

Credits

Assignment modified by Min Sun based on Prof. Huang's lab0 in 2014 

dsp_hw0's People

Contributors

steven14ggyy avatar aliensunmin avatar huchanwei123 avatar nomoneynow avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.