LS2Wstat (version 2.1-1)

plot.imageQT: A plot function for quadtree decompositions.

Description

A plot function for quadtree decompositions.

Usage

# S3 method for imageQT
plot(x, cires, unclassval = 0, class = FALSE, QT = TRUE, 
		return = FALSE, qtl = 1, ...)

Arguments

x

A quadtree decomposition object, such as output from imageQT.

cires

Results of countTextures for the classification of subimages produced by the quadtree decomposition.

unclassval

A value for unclassified values in a quadtree decomposition.

class

A boolean value indicating whether to plot the results from countTextures.

QT

A boolean value indicating whether to plot the quadtree decomposition.

return

A boolean value indicating whether to return the matrix associated to the plotted image.

qtl

Colour specification for the lines drawn in the image segmentation (for QT=TRUE).

Any other optional arguments to image.

Value

immat

the matrix associated to the plotted image.

Details

The function plots the chosen quadtree decomposition, and optionally the textured region classification output from countTextures. If the classification output is plotted (class=TRUE), each textured region is uniquely coloured according to its texture group.

See Also

imageQT, countTextures

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
X<-simTexture(256,K=1,imtype="NS2")[[1]]

XQT<-imageQT(X, bs=100, smooth=FALSE)

XCI <- Tex(XQT$imS, bs=100, smooth=FALSE)

plot(XQT, XCI, QT=T, class=T)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab