def __init__(self, image, comps, mdl=models.ConfocalImageModel(), sigma=<NUM_LIT>,<EOL>priors=None, pad=<NUM_LIT>, model_as_data=False):
self.dim = image.get_image().ndim<EOL>self.sigma = sigma<EOL>self.priors = priors<EOL>self.pad = util.aN(pad, dim=self.dim)<EOL>self.model_as_data = model_as_data<EOL>comp.ComponentCollection.__init__(self, comps=comps)<EOL>self.set_model(mdl=mdl)<EOL>self.set_image(image)<EOL>self.build_funcs()<EOL>if self.model_as_data:<EOL><INDENT>self.model_to_data(self.sigma)<EOL><DEDENT>
The state object to create a confocal image.  The model is that of
a spatially varying illumination field, from which platonic particle
shapes are subtracted.  This is then spread with a point spread function
(PSF).

Parameters
-----------
image : :class:`peri.util.Image` object
    The raw image with which to compare the model image from this
    class.  This image should have been prepared through
    prepare_for_state, which does things such as padding necessary for
    this class. In the case of the RawImage, paths are used to keep
    track of the image object to save on pickle size.

comp : list of :class:`peri.comp.comp.Component` or :class:`peri.comp.comp.ComponentCollection`
    Components used to make up the model image. Each separate component
    must be of a different category, otherwise combining them would be
    ambiguous. If you desire multiple Components of one category,
    combine them using a ComponentCollection (which has functions for
    combining) and supply that to the comps list.

    The component types must match the list of categories in the
    ``ImageState.catmap`` which tells how components are matched to
    parts of the model equation.

mdl : :class:`peri.models.Model` object
    Model defining how to combine different Components into a single
    model.

priors: list of ``peri.priors`` [default: ()]
    Whether or not to turn on overlap priors using neighborlists

pad : integer or tuple of integers (optional)
    No recommended to set by hand.  The padding level of the raw image
    needed by the PSF support.

model_as_data : boolean
    Whether to use the model image as the true image after initializing