public class ImageProc extends Object
| Constructor and Description |
|---|
ImageProc(org.lsst.ccs.drivers.reb.ImageClient imc)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure(org.lsst.ccs.utilities.logging.Logger log)
Performs configuration.
|
void |
configure(String rebName,
int rebId,
org.lsst.ccs.Subsystem subsys,
org.lsst.ccs.utilities.logging.Logger log)
Deprecated.
|
void |
enableScan(boolean enable)
Enables/disables scan mode.
|
org.lsst.ccs.daq.utilities.FitsService |
getFitsService()
Get the corresponding FitsService
|
ImageData |
getImage(int ccd,
int offset,
int count)
Gets a portion of the current image.
|
org.lsst.ccs.drivers.reb.ImageMetadata |
getImageMetadata()
Gets the DAQ metadata for the current image.
|
double[][] |
getImageStats()
Gets pixel value statistics for the current image.
|
org.lsst.ccs.utilities.ccd.Reb |
getRebGeometry() |
void |
initImageWait()
Initializes for a new set of images
|
List<String> |
saveFitsImage(String dName) |
List<String> |
saveFitsImage(String dName,
org.lsst.ccs.utilities.image.FitsHeaderMetadataProvider provider)
Saves the current image data as one or more FITS files.
|
String |
saveImage(String dName)
Saves the current image as raw bytes.
|
void |
setCcdMask(int ccdMask)
Sets the mask of CCDs being used.
|
void |
setDataInversion(boolean invert)
Sets whether image data values are inverted
|
void |
setDefaultImageDirectory(String dirName)
Sets the default image directory.
|
void |
setFitsFileNamePattern(String pattern)
Sets the FITS image file name pattern.
|
void |
setImageDataFileNamePattern(String pattern)
Sets the raw image data file name pattern.
|
void |
setNumRebCcds(int numRebCcds)
Sets the number of CCDs on the REB.
|
void |
setRebGeometry(org.lsst.ccs.utilities.ccd.Reb reb)
Set the Reb Geometry corresponding to this ImageProc instance.
|
ByteBuffer[][] |
splitImage()
Splits the current image into its segments.
|
int |
waitForImage(int timeout)
Waits for an image to arrive
|
public ImageProc(org.lsst.ccs.drivers.reb.ImageClient imc)
imc - The image client objectpublic void configure(org.lsst.ccs.utilities.logging.Logger log)
log - The associated logger@Deprecated public void configure(String rebName, int rebId, org.lsst.ccs.Subsystem subsys, org.lsst.ccs.utilities.logging.Logger log)
rebName - The REB device namerebId - The REB ID (address)subsys - The associated subsystemlog - The associated loggerpublic void enableScan(boolean enable)
enable - True to enable, false to disablepublic void setCcdMask(int ccdMask)
ccdMask - The mask of active CCDspublic void setNumRebCcds(int numRebCcds)
numRebCcds - The number of CCDspublic void setRebGeometry(org.lsst.ccs.utilities.ccd.Reb reb)
reb - The Reb Geometry.public org.lsst.ccs.utilities.ccd.Reb getRebGeometry()
public void setDataInversion(boolean invert)
invert - Whether data values are to be invertedpublic void initImageWait()
public int waitForImage(int timeout)
timeout - The timeout (msec)public String saveImage(String dName) throws RaftException, IOException
dName - The name of the directory where the image file is to saved.RaftExceptionIOExceptionpublic List<String> saveFitsImage(String dName, org.lsst.ccs.utilities.image.FitsHeaderMetadataProvider provider) throws IOException, RaftException
dName - The name of the directory where the FITS file is to be
saved.provider - An external FitsHeaderMetadataProvider.RaftExceptionIOExceptionpublic List<String> saveFitsImage(String dName) throws IOException, RaftException
IOExceptionRaftExceptionpublic org.lsst.ccs.drivers.reb.ImageMetadata getImageMetadata()
throws RaftException
RaftExceptionpublic ImageData getImage(int ccd, int offset, int count) throws RaftException
ccd - The CCD numberoffset - The offset (in pixels) to the first pixel data to obtain.count - The number of data pixels to obtain. If zero, all the data,
starting at offset, is obtained.RaftExceptionpublic double[][] getImageStats()
throws RaftException
RaftExceptionpublic ByteBuffer[][] splitImage() throws RaftException
RaftExceptionpublic void setDefaultImageDirectory(String dirName)
dirName - The directory namepublic void setFitsFileNamePattern(String pattern)
pattern - The file name pattern to setpublic void setImageDataFileNamePattern(String pattern)
pattern - The file name pattern to setpublic org.lsst.ccs.daq.utilities.FitsService getFitsService()
Copyright © 2018 LSST. All rights reserved.