Skip to content

A simple command line tool for calculating spatial information for images based on Soble operator.

License

Notifications You must be signed in to change notification settings

skohlmann/spatial-image-information

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spatial information for PNG images

A simple command line tool for calculating spatial information for images based on Soble operator.

Status

Warning: this tool is very alpha.

Introduction

The command line tool calculates spatial information based on the Sobel operator. The spatial information mean value (SImean) is printed to stdout.

Spatial information is defined as

    SIr = sqrt(sX^2 + sY^2)

where sX and sY are output of the Sobel kernel.

SImean is defined as

    (1 / pixel) * sum(SIr)

where pixel is the amount of pixels in the image.

Usage

Use

   si <image>

from command line where <image> is the filename of the PNG or JPEG image to get SImean for.

Build

Precondition: installed go 1.8.3

Clone the repository and type

    go build si.go 
    go build msss.go 

About

A simple command line tool for calculating spatial information for images based on Soble operator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages