Code Monkey home page Code Monkey logo

edgedetection_and_halftoning's Introduction

#####################################################

Project Title: EE569 - Homework Assignment 2 Date: 02-12-2019 Author: Spencer McDonough ID: 6341617166 email: [email protected] OS: OSX, Ubuntu Compiler: g++ #####################################################

references

dithering matrix: https://www.youtube.com/watch?v=K7RCH5yyVVE opencv canny edge detector: https://docs.opencv.org/2.4/doc/tutorials/imgproc/imgtrans/canny_detector/canny_detector.html error diffusion: https://engineering.purdue.edu/~bouman/ece637/notes/pdf/Halftoning.pdf

Compile and Execution Instructions

Problem 1.a) $ g++ colorToGray.cpp -o colorToGray $ g++ gaussianDenoise.cpp -o gaussianDenoise $ g++ sobel.cpp -o sobel $ ./colorToGray HW2_images/Tiger.raw HW2_images/tigerGray.raw $ ./gaussianDenoise HW2_images/tigerGray.raw HW2_images/tigerDenoise.raw 1 481 321 3 $ ./sobel HW2_images/tigerGray.raw HW2_images/sobelTiger.raw 1 481 321 3

Problem 1.b) OSX: $ g++ -g -Wall -I/opt/local/include/ canny.cpp -o canny ubuntu: g++ -g -Wall -I/usr/local/include/opencv4 canny.cpp -o canny

Problem 2.a.1) $ g++ randomHalfTone.cpp -o randomHalfTone $ ./randomHalfTone HW2_images/bridge.raw HW2_images/bridgeRandom.raw 1 600 400

Problem 2.a.2) $ g++ dithering.cpp -o dithering $ ./dithering HW2_images/bridge.raw HW2_images/bridgeI2.raw 1 600 400 2 $ ./dithering HW2_images/bridge.raw HW2_images/bridgeI4.raw 1 600 400 4 $ ./dithering HW2_images/bridge.raw HW2_images/bridgeI8.raw 1 600 400 8

Problem 2.b.1) $ g++ errorDiffusion.cpp -o errorDiffusion $ ./errorDiffusion HW2_images/bridge.raw HW2_images/bridge-FS.raw 1 600 400 1 $ ./errorDiffusion HW2_images/bridge.raw HW2_images/bridge-JJN.raw 1 600 400 2 $ ./errorDiffusion HW2_images/bridge.raw HW2_images/bridge-STU.raw 1 600 400 3

edgedetection_and_halftoning's People

Contributors

smcd253 avatar

Watchers

 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.