A simple command line tool for calculating spatial information for images based on Soble operator.
Warning: this tool is very alpha.
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.
Use
si <image>
from command line where <image>
is the filename of the PNG or JPEG image to get SImean
for.
Precondition: installed go
1.8.3
Clone the repository and type
go build si.go go build msss.go