spatial-image-information

command module
v0.0.0-...-8058c78 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2017 License: GPL-3.0 Imports: 12 Imported by: 0

README

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 

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL