@Reference(type=Inproceedings, author="Che-Hua Yeh, Yuan-Chen Ho, Brian A. Barsky, Ming Ouhyoung", title="Personalized Photograph Ranking and Selection System", year="2010", booktitle="Proceedings of ACM Multimedia", pages={"211","220"}, month="October", customData={"location","Florence, Italy"}) public class YehSaliency extends Object implements SaliencyMapGenerator<MBFImage>
AchantaSaliency
approach to get the saliency
values for individual pixels. Regions are segmented from the image
using a FelzenszwalbHuttenlocherSegmenter
. Saliency values are
generated for each region by averaging the saliency values of the
pixels within the region.Modifier and Type | Field and Description |
---|---|
protected gnu.trove.map.hash.TObjectFloatHashMap<ConnectedComponent> |
componentMap |
protected FImage |
map |
Constructor and Description |
---|
YehSaliency()
Construct with default settings for the
AchantaSaliency
and FelzenszwalbHuttenlocherSegmenter . |
YehSaliency(float saliencySigma,
float segmenterSigma,
float k,
int minSize)
Construct with custom parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
analyseImage(MBFImage image)
Analyse an image.
|
gnu.trove.map.hash.TObjectFloatHashMap<ConnectedComponent> |
getSaliencyComponents()
Get a map of component->saliency for all the components in
the image
|
FImage |
getSaliencyMap()
Get the generated saliency map
|
protected gnu.trove.map.hash.TObjectFloatHashMap<ConnectedComponent> componentMap
public YehSaliency()
AchantaSaliency
and FelzenszwalbHuttenlocherSegmenter
.public YehSaliency(float saliencySigma, float segmenterSigma, float k, int minSize)
saliencySigma
- smoothing for the AchantaSaliency
classsegmenterSigma
- smoothing for FelzenszwalbHuttenlocherSegmenter
.k
- k value for FelzenszwalbHuttenlocherSegmenter
.minSize
- minimum region size for FelzenszwalbHuttenlocherSegmenter
.public void analyseImage(MBFImage image)
ImageAnalyser
analyseImage
in interface ImageAnalyser<MBFImage>
image
- The image to process in place.public FImage getSaliencyMap()
SaliencyMapGenerator
getSaliencyMap
in interface SaliencyMapGenerator<MBFImage>
public gnu.trove.map.hash.TObjectFloatHashMap<ConnectedComponent> getSaliencyComponents()