Giter Site home page Giter Site logo

computer-vision's Introduction

Computer-Vision

In the image_filter folder:

(1). processing_tool.py inculdes:

  1. load(img_path) -> load an image from a file path

  2. print_stats(image) -> Prints the height, width and number of channels in an image.

  3. crop(image, start_row, start_col, num_rows, num_cols) -> Crop an image based on the specified bounds. Use array slicing.

  4. change_contrast(image, factor)-> Change the value of every pixel by following

                                     x_n = factor * (x_p - 0.5) + 0.5
    

    where x_n is the new value and x_p is the original value. Assumes pixel values between 0.0 and 1.0 If you are using values 0-255, change 0.5 to 128.

  5. resize(input_image, output_rows, output_cols) -> Resize an image using the nearest neighbor method.

  6. greyscale(input_image) -> Convert a RGB image to greyscale.

(2). convolution.py inculdes:

  1. conv2D(image, kernel) -> Convolution of a 2D image with a 2D kernel.
  2. test_conv2D(): -> A simple test for your 2D convolution function.
  3. conv(image, kernel) -> Convolution of a RGB or grayscale image with a 2D kernel
  4. gauss2D(size, sigma) -> Function to mimic the 'fspecial' gaussian MATLAB function.
  5. corr(image, kernel) -> Cross correlation of a RGB image with a 2D kernel

computer-vision's People

Contributors

boyleerock avatar

Stargazers

 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.