public class SkinColorDetection extends MarvinAbstractImagePlugin
| 构造器和说明 |
|---|
SkinColorDetection() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected double |
calculateVectorAngle(int[] vector1,
int[] vector2)
Get the angle between two, two dimensional vectors
|
protected void |
checkRule0(int currentRed,
int currentGreen,
int currentBlue,
boolean[] rules) |
protected void |
checkRule1(int currentRed,
int currentGreen,
int currentBlue,
boolean[] rules) |
protected void |
checkRule2(int currentRed,
int currentGreen,
int currentBlue,
boolean[] a_rules) |
protected double |
findMagnitude(int[] vector)
Find the magnitude of a 2 element 'vector'
|
protected void |
findMinMax(MarvinImage imageIn,
int[] minMax)
Find the minimum and maximum component of all the R, G and B values in an image.
|
MarvinAttributesPanel |
getAttributesPanel() |
void |
load() |
int |
max3nums(int a_red,
int a_green,
int a_blue) |
int |
min3nums(int a_red,
int a_green,
int a_blue) |
void |
process(MarvinImage imageIn,
MarvinImage imageOut,
MarvinAttributes attributesOut,
MarvinImageMask mask,
boolean previewMode)
Initiate the process of finding skin
|
getImagePanel, process, process, process, process, setImagePanelgetAttribute, getAttributes, invalidate, isValid, setAttribute, setAttributes, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getAttributes, invalidate, isValid, setAttribute, setAttributes, validatepublic void load()
public MarvinAttributesPanel getAttributesPanel()
public void process(MarvinImage imageIn, MarvinImage imageOut, MarvinAttributes attributesOut, MarvinImageMask mask, boolean previewMode)
MarvinImage - - the image to be rotatedboolean - - to display a previewprotected void checkRule2(int currentRed,
int currentGreen,
int currentBlue,
boolean[] a_rules)
public int max3nums(int a_red,
int a_green,
int a_blue)
public int min3nums(int a_red,
int a_green,
int a_blue)
protected void checkRule1(int currentRed,
int currentGreen,
int currentBlue,
boolean[] rules)
protected void checkRule0(int currentRed,
int currentGreen,
int currentBlue,
boolean[] rules)
protected void findMinMax(MarvinImage imageIn, int[] minMax)
imageIn - minMax - protected double calculateVectorAngle(int[] vector1,
int[] vector2)
a_Vector1, - a_Vector2 - the vectors who's angle of difference needs to be calculatedprotected double findMagnitude(int[] vector)
vector - Copyright © 2018. All rights reserved.