class documentation
A heatmap for an image.
Provide either the map or map_path argument to define the heatmap.
Parameters | |
map | a 2D numpy array |
map | the absolute path to the heatmap image on disk |
range | an optional [min, max] range of the map's values. If None is provided, [0, 1] will be assumed if map contains floating point values, [0, 255] will be assumed if map contains integer values, and the dtype of the image will be assumed if map_path is used |
Method | export |
Exports this instance's map to the given path. |
Method | get |
Returns the map array for this instance. |
Method | import |
Imports this instance's map from disk to its map attribute. |
Class Variable | range |
Undocumented |
Instance Variable | map |
Undocumented |
Instance Variable | map |
Undocumented |
Property | has |
Whether this instance has a map. |
Constant | _MEDIA |
Undocumented |
Inherited from _HasID
:
Class Variable | tags |
Undocumented |
Instance Variable | id |
Undocumented |
Method | _id |
Undocumented |
Property | _id |
Undocumented |
Inherited from Label
(via _HasID
, _HasMedia
):
Method | delete |
Deletes the attribute with the given name. |
Method | get |
Gets the value of the attribute with the given name. |
Method | has |
Determines whether the label has an attribute with the given name. |
Method | iter |
Returns an iterator over the custom attributes of the label. |
Method | set |
Sets the value of the attribute with the given name. |