Image
class Image extends Image
Extends the base Biigle image.
Traits
Constants
MIMES |
Allowed image MIME types. |
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 VolumeFile |
int | $id | from VolumeFile | |
int | $volume_id | from VolumeFile | |
string | $filename | from VolumeFile | |
protected array<int,string> | $fillable | The attributes that are mass assignable. |
from Image |
$hidden | The attributes hidden in the model's JSON form. |
from Image | |
protected array<string,string> | $casts | The attributes that should be casted to native types. |
from Image |
static private array | $infoParams | Properties of the laser points object. |
Methods
Set a dynamic JSON attribute.
Get a dynamic JSON attribute.
Adds the url
attribute to the model. The url is the absolute path
to the original file.
Get the original image as download response.
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
in
HasJsonAttributes at line 16
protected
setJsonAttr(string $key, mixed $value, string $attrs = 'attrs')
Set a dynamic JSON attribute.
in
HasJsonAttributes at line 38
protected mixed
getJsonAttr(string $key, mixed $default = null, string $attrs = 'attrs')
Get a dynamic JSON attribute.
in
VolumeFile at line 32
string
getUrlAttribute()
Adds the url
attribute to the model. The url is the absolute path
to the original file.
in
VolumeFile at line 40
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]://".
in
VolumeFile at line 50
volume()
The volume this video belongs to.
in
VolumeFile at line 58
setMetadataAttribute(array|null $value)
Set the metadata attribute.
in
VolumeFile at line 66
array|null
getMetadataAttribute()
Get the metadata attribute.
in
VolumeFile at line 76
setWidthAttribute(int $value)
Set the width attribute.
in
VolumeFile at line 86
int|null
getWidthAttribute()
Get the width attribute.
in
VolumeFile at line 96
setHeightAttribute(int $value)
Set the height attribute.
in
VolumeFile at line 106
int|null
getHeightAttribute()
Get the height attribute.
in
VolumeFile at line 116
setSizeAttribute(int $value)
Set the size attribute.
in
VolumeFile at line 126
int|null
getSizeAttribute()
Get the size attribute.
in
VolumeFile at line 136
string
getMimeTypeAttribute()
Get the mimeType attribute.
in
VolumeFile at line 146
setMimeTypeAttribute(string $value)
Set the mimeType attribute.
in
Image at line 165
string
getThumbnailUrlAttribute()
URL to the thumbnail of this image.
in
Image at line 81
labels()
The labels, this image got attached by the users.
in
Image at line 71
annotations()
The annotations on this image.
in
Image at line 91
array<string,mixed>|RedirectResponse|StreamedResponse
getFile()
Get the original image as download response.
in
Image at line 145
setTilingInProgressAttribute(bool $value)
Set the tilingInProgress attribute.
in
Image at line 155
bool|null
getTilingInProgressAttribute()
Get the tilingInProgress attribute.
at line 61
static Image
convert(Image $image)
Converts a regular Biigle image to a Laserpoints image.
at line 75
array
getLaserpointsAttribute()
Return the dynamic attribute for the laser points information.
at line 85
setLaserpointsAttribute(array $value)
Set or update the dynamic attribute for the laser points information.
at line 103
float
getAreaAttribute()
Get the area attribute from the laser point detection.
at line 113
int
getCountAttribute()
Get the count attribute from the laser point detection.
at line 123
string
getMethodAttribute()
Get the method attribute from the laser point detection.
at line 133
float
getDistanceAttribute()
Get the distance attribute from the laser point detection.
at line 143
array
getPointsAttribute()
Get the points attribute from the laser point detection.
at line 153
bool
getErrorAttribute()
Get the error attribute from the laser point detection.
at line 163
bool
getMessageAttribute()
Get the message attribute from the lase point detection.
at line 176
bool
readyForManualDetection(Label $label)
Determines if this image has a valid number of manually annotated laser points.
at line 202
protected mixed
accessLaserpointsArray(string $key)
Get an attribute from the laser points array.