Description Usage Arguments Details Value Author(s) Examples
Computes the L1 or L2 norm between two vectors or matrices.
1 |
orgImage |
A vector or a matrix. |
testImage |
A vector or a matrix of same size as |
mode |
Defaults to |
If X and Y are vectors of length n or (n1,n2)-matrices with n=n1*n2 then the L1-norm and the L2-norm will be compute as follow:
L1 = 1/n*(∑_{i=1}^{n} |X_i-Y_i|)
L2 = (1/n*(∑_{i=1}^{n} (X_i-Y_i)^2))^0.5
Returns the L1 or L2 norm.
Joern Schulz, jschulz78@web.de.
1 2 3 4 |
Loading required package: adimpro
Loading required package: awsMethods
Use the function setCores() to change the number of CPU cores.
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
sh: 1: cannot create /dev/null: Permission denied
Reading RAW images requires to install dcraw, see
http://cybercom.net/~dcoffin/dcraw/ for LINUX and http://www.insflug.org/raw/
for MAC OS and Windows
Attaching package: 'PET'
The following object is masked from 'package:base':
norm
Warning message:
In fun(libname, pkgname) : could not determine path to Imagemagick
please set the correct path manually using
'Sys.setenv(ImageMagick='path2imagemagick')'
Creation of the source-data --> complete.
AR step:
Progress: 71 %
Progress: 100 %
Needed time in all: 0.606 0.061 0.668 0 0
The L1 is: 18.60592
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.