Make a 2D Cosine Packet Crystal.

DESCRIPTION:
Makes an object of class "cp.crystal.2d". A cp.crystal.2d is a collection of 2D cosine packet atoms.

USAGE:
cp.crystal.2d(x, row.dict=NULL, col.dict=NULL, crystal.name="", ...)

REQUIRED ARGUMENTS:
x:
an image or a matrix.

OPTIONAL ARGUMENTS:
row.dict:
cosine packet dictionary for rows.
col.dict:
cosine packet dictionary for columns.
crystal.name:
name of the crystal (same as the name of the first atom in the crystal).
...:
additional arguments for cp.dict.2d.

VALUE:
an object of class cp.crystal.2d which is the same as x with attributes: dictionary, crystal.name and interval.

DETAILS:
Generic functions such as reconstruct, print, plot, eda.plot, summary have methods to show the properties of the cp.crystal.2d objects.

SEE ALSO:
cp.crystal , reconstruct , eda.plot .