skohlmann / spatial-image-information

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

License:GNU General Public License v3.0


Languages

Language:Go 100.0%