@Transactional(readOnly=true) public class PixelsImpl extends AbstractLevel2Service implements IPixels
Modifier and Type | Field and Description |
---|---|
static String |
RENDERING_DEF_QUERY_PREFIX
Standard rendering definition HQL query prefix
|
iQuery, iUpdate, metadata, queryFactory, sec
Constructor and Description |
---|
PixelsImpl() |
Modifier and Type | Method and Description |
---|---|
Long |
copyAndResizeImage(long imageId,
Integer sizeX,
Integer sizeY,
Integer sizeZ,
Integer sizeT,
List<Integer> channelList,
String name,
boolean copyStats)
Copies the metadata, and only the metadata linked to a Image
object into a new Image object of equal or differing size across one
or many of its three physical dimensions or temporal dimension.
|
Long |
copyAndResizePixels(long pixelsId,
Integer sizeX,
Integer sizeY,
Integer sizeZ,
Integer sizeT,
List<Integer> channelList,
String methodology,
boolean copyStats)
Copies the metadata, and only the metadata linked to a Pixels
object into a new Pixels object of equal or differing size across one
or many of its three physical dimensions or temporal dimension.
|
Long |
createImage(int sizeX,
int sizeY,
int sizeZ,
int sizeT,
List<Integer> channelList,
PixelsType pixelsType,
String name,
String description)
Creates the metadata, and only the metadata linked to an Image
object.
|
<T extends IObject> |
getAllEnumerations(Class<T> klass)
Retrieves the exhaustive list of enumerations for a given enumeration
class.
|
int |
getBitDepth(PixelsType pixelsType)
Bit depth for a given pixel type.
|
<T extends IObject> |
getEnumeration(Class<T> klass,
String value)
Retrieves a particular enumeration for a given enumeration class.
|
Class<? extends ServiceInterface> |
getServiceInterface()
Returns the interface this implementation is for.
|
RenderingDef |
loadRndSettings(long renderingDefId)
Implemented as specified by the
IPixels I/F. |
List<IObject> |
retrieveAllRndSettings(long pixId,
long userId)
Implemented as specified by the
IPixels I/F. |
Pixels |
retrievePixDescription(long pixId)
Retrieves the pixels metadata with the following objects pre-linked:
pixels.pixelsType
pixels.pixelsDimensions
pixels.channels
pixels.channnels.statsInfo
pixels.channnels.colorComponent
pixels.channnels.logicalChannel
pixels.channnels.logicalChannel.photometricInterpretation
|
RenderingDef |
retrieveRndSettings(long pixId)
Implemented as specified by the
IPixels I/F. |
RenderingDef |
retrieveRndSettingsFor(long pixId,
long userId)
Implemented as specified by the
IPixels I/F. |
void |
saveRndSettings(RenderingDef rndSettings)
Saves the specified rendering settings.
|
void |
setChannelGlobalMinMax(long pixelsId,
int channelIndex,
double min,
double max)
Sets the channel global (all 2D optical sections corresponding to a
particular channel) minimum and maximum for a Pixels set.
|
getBeanHelper, getExtendedMetadata, getQueryFactory, getSecuritySystem, selfConfigure, setExtendedMetadata, setQueryFactory, setQueryService, setSecuritySystem, setUpdateService
public static final String RENDERING_DEF_QUERY_PREFIX
public Class<? extends ServiceInterface> getServiceInterface()
getServiceInterface
in interface SelfConfigurableService
SelfConfigurableService.getServiceInterface()
public Pixels retrievePixDescription(long pixId)
IPixels
retrievePixDescription
in interface IPixels
pixId
- Pixels id.public RenderingDef retrieveRndSettingsFor(long pixId, long userId)
IPixels
I/F.retrieveRndSettingsFor
in interface IPixels
pixId
- Pixels id.userId
- The id of the user.IPixels.retrieveRndSettingsFor(long, long)
public List<IObject> retrieveAllRndSettings(long pixId, long userId)
IPixels
I/F.retrieveAllRndSettings
in interface IPixels
IPixels#retrieveAllRndSettingsFor(long, long)
public RenderingDef retrieveRndSettings(long pixId)
IPixels
I/F.retrieveRndSettings
in interface IPixels
pixId
- Pixels id.IPixels.retrieveRndSettings(long)
public RenderingDef loadRndSettings(long renderingDefId)
IPixels
I/F.loadRndSettings
in interface IPixels
renderingDefId
- Rendering definition id.IPixels.loadRndSettings(long)
@Transactional(readOnly=false) public Long copyAndResizePixels(long pixelsId, Integer sizeX, Integer sizeY, Integer sizeZ, Integer sizeT, List<Integer> channelList, String methodology, boolean copyStats)
IPixels
RawPixelsStore
or to add
and link PlaneInfo
and/or other Pixels set specific metadata.
It is also assumed that the caller wishes the physical
PixelsDimensions
and PixelsType
to remain the same;
changing these is outside the scope of this method. NOTE: As
Channel
objects are only able to apply to a single set of
Pixels any annotations or linkage to these objects will be lost.copyAndResizePixels
in interface IPixels
pixelsId
- The source Pixels set id.sizeX
- The new size across the X-axis. null
if the
copy should maintain the same size.sizeY
- The new size across the Y-axis. null
if the
copy should maintain the same size.sizeZ
- The new size across the Z-axis. null
if the
copy should maintain the same size.sizeT
- The new number of timepoints. null
if the
copy should maintain the same number.channelList
- The channels that should be copied into the new Pixels
set.methodology
- An optional string signifying the methodology that
will be used to produce this new Pixels set.copyStats
- Whether or not to copy the StatsInfo
for each
channel.null
on
failure.@Transactional(readOnly=false) public Long copyAndResizeImage(long imageId, Integer sizeX, Integer sizeY, Integer sizeZ, Integer sizeT, List<Integer> channelList, String name, boolean copyStats)
IPixels
RawPixelsStore
or to add
and link PlaneInfo
and/or other Pixels set specific metadata.
It is also assumed that the caller wishes the physical
PixelsDimensions
and PixelsType
to remain the same;
changing these is outside the scope of this method. NOTE: As
Channel
objects are only able to apply to a single set of
Pixels any annotations or linkage to these objects will be lost.copyAndResizeImage
in interface IPixels
imageId
- The source Image id.sizeX
- The new size across the X-axis. null
if the
copy should maintain the same size.sizeY
- The new size across the Y-axis. null
if the
copy should maintain the same size.sizeZ
- The new size across the Z-axis. null
if the
copy should maintain the same size.sizeT
- The new number of timepoints. null
if the
copy should maintain the same number.channelList
- The channels that should be copied into the new Pixels
set.name
- The name of the new Image.copyStats
- Whether or not to copy the StatsInfo
for each
channel.null
on
failure.@Transactional(readOnly=false) public Long createImage(int sizeX, int sizeY, int sizeZ, int sizeT, List<Integer> channelList, PixelsType pixelsType, String name, String description)
IPixels
RawPixelsStore
or to add and link PlaneInfo
or StatsInfo
objects
and/or other Pixels set specific metadata. It is also up to the caller
to update PixelsDimensions
.createImage
in interface IPixels
sizeX
- The new size across the X-axis.sizeY
- The new size across the Y-axis.sizeZ
- The new size across the Z-axis.sizeT
- The new number of timepoints.channelList
- The channels (emission wavelength in nanometers) that
should be added to the new Pixels set.name
- The name of the new Image.description
- The description of the new Image.null
on
failure.@Transactional(readOnly=false) public void setChannelGlobalMinMax(long pixelsId, int channelIndex, double min, double max)
IPixels
setChannelGlobalMinMax
in interface IPixels
pixelsId
- The source Pixels set id.channelIndex
- The channel index within the Pixels set.min
- The channel global minimum.max
- The channel global maximum.@Transactional(readOnly=false) public void saveRndSettings(RenderingDef rndSettings)
IPixels
saveRndSettings
in interface IPixels
rndSettings
- Rendering settings.public int getBitDepth(PixelsType pixelsType)
IPixels
getBitDepth
in interface IPixels
pixelsType
- Pixels type.public <T extends IObject> T getEnumeration(Class<T> klass, String value)
IPixels
getEnumeration
in interface IPixels
klass
- Enumeration class.value
- Enumeration string value.public <T extends IObject> List<T> getAllEnumerations(Class<T> klass)
IPixels
getAllEnumerations
in interface IPixels
klass
- Enumeration class.
Version: 5.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.