Git Product home page Git Product logo

image-basics-package's Introduction

Image Basics

Description:

The package Image Basics have two modules processing and utils.

Processing Module

This module contain two files:

histogram.py

  • match: this function use two image, source/reference, and transform histogram color of source image like reference image.

  • oriented_gradient: this function take a one image and return a histogram oriented gradient of the image.

imagereader.py

Contain a class ReadImage, this class return a group of data from image like:

  • Shape
  • Number of Bands
  • Format
  • Metadata
  • Histogram (can plot or just take values)

And can convert image like a numpy array or just display image

Utils Module: contain the functions to plot histogram using imagereader.py in processing module.

Installation

Use the package manager pip to install Image Basic Analysis

pip install image_basics

Usage

histogram.py: match

from image_basics.processing import histogram

source_image = 'path_to_source_image'	# Image that you want transform
reference_image = 'path_to_referece_image' # Image Histogram to use like reference

matched = histogram.match(source_image, reference_image, plot = True)
# If you don't can see the result remove plot argument or put like False (default)

histogram.py: oriented_gradient

from image_basics.processing import histogram
from image_basics.processing import imagereader as ir

image = ir.ReadImage('image_path').as_array()
hog_image = histogram.oriented_gradient(image)
# If you want plot the result you can add the plot argument and set like True

Author

Alexandre Carrascosa

License

MIT

image-basics-package's People

Contributors

alexandrecarrascosa 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.