|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmarvin.plugin.MarvinAbstractImagePlugin
org.marvinproject.image.color.skinColorDetection.SkinColorDetection
public class SkinColorDetection
Locates skin color pixels in an image.
| Constructor Summary | |
|---|---|
SkinColorDetection()
|
|
| Method Summary | |
|---|---|
protected double |
calculateVectorAngle(int[] a_Vector1,
int[] a_Vector2)
Get the angle between two, two dimensional vectors |
protected void |
checkRule0(int a_currentRed,
int a_currentGreen,
int a_currentBlue,
boolean[] a_rules)
|
protected void |
checkRule1(int a_currentRed,
int a_currentGreen,
int a_currentBlue,
boolean[] a_rules)
|
protected void |
checkRule2(int a_currentRed,
int a_currentGreen,
int a_currentBlue,
boolean[] a_rules)
|
protected double |
findMagnitude(int[] a_Vector)
Find the magnitude of a 2 element 'vector' |
protected void |
findMinMax(marvin.image.MarvinImage a_imageIn,
int[] a_minMax)
Find the minimum and maximum component of all the R, G and B values in an image. |
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(marvin.image.MarvinImage a_imageIn,
marvin.image.MarvinImage a_imageOut,
marvin.util.MarvinAttributes a_attributesOut,
marvin.image.MarvinImageMask a_mask,
boolean a_previewMode)
Initiate the process of finding skin |
void |
show()
|
| Methods inherited from class marvin.plugin.MarvinAbstractImagePlugin |
|---|
getAttribute, getAttributes, getImagePanel, setAttribute, setImagePanel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SkinColorDetection()
| Method Detail |
|---|
public void load()
public void show()
public void process(marvin.image.MarvinImage a_imageIn,
marvin.image.MarvinImage a_imageOut,
marvin.util.MarvinAttributes a_attributesOut,
marvin.image.MarvinImageMask a_mask,
boolean a_previewMode)
MarvinImage - - the image to be rotatedboolean - - to display a preview
protected void checkRule2(int a_currentRed,
int a_currentGreen,
int a_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 a_currentRed,
int a_currentGreen,
int a_currentBlue,
boolean[] a_rules)
protected void checkRule0(int a_currentRed,
int a_currentGreen,
int a_currentBlue,
boolean[] a_rules)
protected void findMinMax(marvin.image.MarvinImage a_imageIn,
int[] a_minMax)
a_imageIn - a_minMax -
protected double calculateVectorAngle(int[] a_Vector1,
int[] a_Vector2)
a_Vector1, - a_Vector2 - the vectors who's angle of difference needs to be calculatedprotected double findMagnitude(int[] a_Vector)
a_Vector -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||