compareImages: Assesses whether two textured images are the same texture.

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

The function combines two images together, and then tests the montage for stationarity.

Usage

1
compareImages(Im1, Im2, testsize = min(nrow(Im1), nrow(Im2)), alpha=0.05,...)

Arguments

Im1

The first image to be compared.

Im2

The second image to be compared.

testsize

The size of the combined image montage to be tested for stationarity.

alpha

The significance of the stationarity test.

...

Any other optional arguments to TOS2D.

Details

An image montage of two images is created, and the homogeneity measure TOS2D is used in combination with getpval to assess stationarity of the montage. If the image is assessed as stationary, the two images are considered as the same texture.

Value

montageres

A boolean value indicating whether the montage of Im1 and Im2 is stationary.

Author(s)

Sarah L. Taylor and Matt Nunes

References

Taylor, S.L., Eckley, I.A., and Nunes, M.A. (2014) A Test of Stationarity for Textured Images. Technometrics, 56 (3), 291-301.

See Also

TOS2D, countTextures

Examples

1
2
3
4
5
6
7
# create two images to be compared:
X1<-simTexture(32,K=1,imtype="S1")[[1]]
X2<-simTexture(32,K=1,imtype="S1", sd=1.6)[[1]]
                             
# use the test to compare them:

test<-compareImages(X1,X2,nsamples=100, smooth=FALSE)

nunesmatt/LS2Wstat documentation built on May 15, 2019, 3:34 p.m.