img.zone: Converts a zone object (point list) into a matrix

Description Usage Arguments Value See Also Examples

View source: R/img.zone.R

Description

Converts a zone object (point list) into a matrix : each pixel is attributed to a zone. This matrix can also be plotted with plotimage. This matrix is to be related to the other image matrices, for example in the reshapimg function, to be used in pca.

Usage

1
img.zone(zone,d=NULL,mask=NULL,edge.only=NULL,wo.edge=NULL,graph=FALSE,img=NULL,lim=30)

Arguments

zone

A zone created with create.zones

d

dimension of the matrix to create

mask

boolean matrice can be specified here

edge.only

if TRUE, only the edges of the images are kept. They are defined with "limit" for their width. This requires that the parameter img is fulfilled

wo.edge

if TRUE, the edges of the images are removed. They are defined with "limit" for their width.This requires that the parameter img is fulfilled

img

image on which the edges are selected

graph

if TRUE, the selected edges are plotted

lim

sensitivity of the scale detection

Value

Zone object (with control points) is given as a matrix /image

See Also

create.zones, plotzone,reshapimg,erase,plotimage

Examples

1
2
3
4
data(zones)
data(count)
zone.imgRect=img.zone(zone=zones,d=dim(count))
plotimage(mat=zone.imgRect,z=T)

multifluo documentation built on May 2, 2019, 1:07 p.m.