Crate mss_saliency

Source
Expand description

Sailiency map is computed using Maximum Symmetric Surround algorithm by Radhakrishna Achanta.

https://core.ac.uk/download/pdf/147962379.pdf

Structs§

Img
Basic struct used for both owned (alias ImgVec) and borrowed (alias ImgRef) image fragments.
PixelsIter
Iterates over pixels in the (sub)image. Call Img.pixels() to create it.
PixelsIterMut
Iterates over pixels in the (sub)image. Call Img.pixels_mut() to create it.
PixelsRefIter
Iterates over pixels in the (sub)image. Call Img.pixels_ref() to create it.
RGB
The RGB pixel
RowsIter
Rows of the image. Call Img.rows() to create it.
RowsIterMut
Rows of the image. Call Img.rows_mut() to create it.

Traits§

ImgExt
Additional methods that depend on buffer size
ImgExtMut
Additional methods that depend on buffer size

Functions§

maximum_symmetric_surround_saliency
Create a saliency map.
maximum_symmetric_surround_saliency_f32
Same as maximum_symmetric_surround_saliency, but works on f32.
maximum_symmetric_surround_saliency_rgb
Same as maximum_symmetric_surround_saliency, but returns maximum of 3 channels.

Type Aliases§

ImgRef
Reference to pixels inside another image. Pass this structure by value (i.e. ImgRef, not &ImgRef).
ImgRefMut
Same as ImgRef, but mutable Pass this structure by value (i.e. ImgRef, not &ImgRef).
ImgVec
Image owning its pixels.