View source: R/shape_file.split.R
shape_file.split | R Documentation |
Esta funcao divide a imagem em objetos/parcelas a partir do shapefile criado pela funcao shape_file.create. Dessa forma e criada uma imagem para cada objeto.
shape_file.split(im,shapefile,namesFile="test",path=getwd(),type="jpg")
im |
:Este objeto deve conter uma imagem no formato do EBImage/ExpImage. |
shapefile |
Objeto criado pela funcao shape_file.create |
namesFile |
Nome do arquivo a ser salvo. |
path |
Endereco da pasta onde as imagens seram salvas. |
type |
Extensao da imagem a ser salva.EX: jpg, png, tiff. |
shape_file.create
, shape_file.split
## Not run: end=example_image(13) im=read_image(end,plot=TRUE) A=shape_file.create(im,rows=5,cols=5,rectangular=F,Matrix=NULL,SelectSeveral = F) B=shape_file.BorderExtract(im,A,p.rows = .9,p.cols = .9) shape_file.plot(im,ShapeFile = B) shape_file.split(im =im,shapefile = B,path = getwd(),namesFile = "TEST",type = ".jpg") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.