Image
class Image extendsImage
Extends the base Biigle image.
Traits
Constants
LASERPOINTS_ATTRIBUTE |
Name of the attribute that stores the laser points information in the image 'attrs' object. |
MIN_MANUAL_POINTS |
Minimum number of required manual laser point annotations per image. |
MAX_MANUAL_POINTS |
Maximum number of supported manual laser point annotations per image. |
Properties
bool | $timestamps | Don't maintain timestamps for this model. | from Image |
$hidden | The attributes hidden in the model's JSON form. | from Image | |
protectedarray | $casts | The attributes that should be casted to native types. | from Image |
protectedarray | $dates | The attributes that should be mutated to dates. | from Image |
staticprivatearray | $infoParams | Properties of the laser points object. |
Methods
Set a dynamic JSON attribute.
Get a dynamic JSON attribute.
Adds the url
attribute to the image model. The url is the absolute path
to the original image file.
Return the dynamic attribute for the laser points information.
Set or update the dynamic attribute for the laser points information.
Get the area attribute from the laser point detection.
Get the count attribute from the laser point detection.
Get the method attribute from the laser point detection.
Get the distance attribute from the laser point detection.
Get the points attribute from the laser point detection.
Get the error attribute from the laser point detection.
Get the message attribute from the lase point detection.
Determines if this image has a valid number of manually annotated laser points.
Get an attribute from the laser points array.
Details
inHasJsonAttributesat line16
protected
setJsonAttr(string$key,mixed$value,string$attrs ='attrs')
Set a dynamic JSON attribute.
inHasJsonAttributesat line38
protectedmixed
getJsonAttr(string$key,mixed$default =null,string$attrs ='attrs')
Get a dynamic JSON attribute.
inImageat line60
string
getUrl()
Get the file URL.
This may be a remote URL starting with "http://" or "https://", or a storage disk path starting with "[disk-name]://".
inImageat line70
BelongsTo
volume()
The volume, this image belongs to.
inImageat line80
BelongsTo
annotations()
The annotations on this image.
inImageat line90
HasMany
labels()
The labels, this image got attached by the users.
inImageat line101
string
getUrlAttribute()
Adds the url
attribute to the image model. The url is the absolute path
to the original image file.
inImageat line111
setMetadataAttribute(array$value)
Set the image metadata attribute.
inImageat line121
array
getMetadataAttribute()
Get the image metadata attribute.
inImageat line131
Response
getFile()
Get the original image as download response.
inImageat line173
setWidthAttribute(int$value)
Set the width attribute.
inImageat line183
int|null
getWidthAttribute()
Get the width attribute.
inImageat line193
setHeightAttribute(int$value)
Set the height attribute.
inImageat line203
int|null
getHeightAttribute()
Get the height attribute.
inImageat line213
setSizeAttribute(int$value)
Set the size attribute.
inImageat line223
int|null
getSizeAttribute()
Get the size attribute.
inImageat line233
setMimetypeAttribute(string$value)
Set the mimetype attribute.
inImageat line243
string|null
getMimetypeAttribute()
Get the mimetype attribute.
inImageat line253
setTilingInProgressAttribute(bool$value)
Set the tilingInProgress attribute.
inImageat line263
bool|null
getTilingInProgressAttribute()
Get the tilingInProgress attribute.
at line75
array
getLaserpointsAttribute()
Return the dynamic attribute for the laser points information.
at line85
setLaserpointsAttribute(array$value)
Set or update the dynamic attribute for the laser points information.
at line103
float
getAreaAttribute()
Get the area attribute from the laser point detection.
at line113
int
getCountAttribute()
Get the count attribute from the laser point detection.
at line123
string
getMethodAttribute()
Get the method attribute from the laser point detection.
at line133
float
getDistanceAttribute()
Get the distance attribute from the laser point detection.
at line143
array
getPointsAttribute()
Get the points attribute from the laser point detection.
at line153
bool
getErrorAttribute()
Get the error attribute from the laser point detection.
at line163
bool
getMessageAttribute()
Get the message attribute from the lase point detection.
at line176
bool
readyForManualDetection(Label$label)
Determines if this image has a valid number of manually annotated laser points.
at line202
protectedmixed
accessLaserpointsArray(string$key)
Get an attribute from the laser points array.