Cropgroup: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
(Created page with '===Purpose=== Crop a group of images. ===Synopsis=== :out = cropgroup(imgs,range,loc,options) ===Description=== Crop a group of images based on 'loc' location. ====Inputs=…')
 
imported>Scott
 
Line 36: Line 36:
===See Also===
===See Also===


[[cropimage]], [[imageconcat]]
[[cropimage]], [[cat_img]]

Latest revision as of 19:47, 28 October 2009

Purpose

Crop a group of images.

Synopsis

out = cropgroup(imgs,range,loc,options)

Description

Crop a group of images based on 'loc' location.

Inputs

  • imgs - cell array of images (DSO type = image only).
  • ragne - nx2 verticies of area to crop.
  • loc - location to crop from:
'sw' - lower left corner.
'se' - lower right corner
'nw' - upper left corner.
'ne' - upper right corner.
'center' - crop from center of image.
'none' - (default) use range directly on all images.

Outputs

  • out - cell array of image DSOs.

Options

options = a structure array with the following fields:

  • offset: NOT USED {[]} apply an offset to the 'loc' location, must be positive or negative integer.
  • exclude: [{'on'}|'off'] exclude points outside of verticies.
  • setnan: [{'on'}|'off'] set points outside of verticies to NaN.
  • style: [{'crop'}|'cut'] style of crop, 'crop' works on all outside points while 'cut' works on all inside points.

See Also

cropimage, cat_img