Coadd img

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search

Purpose

Reduce image resolution through combination of adjacent pixels.

Synopsis

databin = coadd_img(imagedata,binsizes,options)

Description

COADD_IMG is used to combine ("bin") adjacent pixels of an image in the x and then y dimension. Inputs include the original array (or image dataset), the number of pixels to combine together in the first and second dimension (binsizes). If binsizes and options are omitted, the user is prompted for the settings to use.

Options

Options = structure array with the following fields:

dim : Dimension / mode in which to perform binning {default = 2},
dim: Dimensions in which to do combination {default = [1 2]},
mode: [ 'sum' | {'mean'} | 'prod' ] method of combination.
labels: [ {'all'} | 'first' | 'middle' | 'last' ] method of combining labels (if any exist). Each method labels a new object using one of the following rules:
'all' = concatenate all labels for the combined items (WARNING: this is very slow)
'first' = use only the label from the first object in each set of combined objects (the default)
'middle' = use only the label from the "middle" object in each set of combined objects.
'last' = use only the label from the last object in each set of combined objects.

Algorithm

See coadd for details of how pixels are combined.


See Also

coadd