Skip to content

Build a data transformation on a data representation of an image.

Notifications You must be signed in to change notification settings

vadim-geroim/Image-Blur-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Image-Blur-2

Solution and Tests to the Columbia University Image #2 problem.

Project structure

  • lib/image.rb - contains solution
  • spec/image_spec.rb - includes three different examples

Solution

  • the method blank_matrix - gets as a parameter matrix and converts it to the matrix with the same dimention but with only zero values in it.
  • the method blur - iterates through the matrix specified in a class constructor and if met ones it will replaces values in the matrix called transformed_matrix which is used as a result of the program. This method returns transformed_matrix as a result.
  • the method output_image - converts matrix to string and prints it in a console

Test execution

  • Run bundle install
  • Open terminal window
  • From the project directory run rspec

About

Build a data transformation on a data representation of an image.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages