org.marvinproject.image.color.skinColorDetection
Class ColorSpaceConverter

java.lang.Object
  extended by marvin.plugin.MarvinAbstractImagePlugin
      extended by org.marvinproject.image.color.skinColorDetection.ColorSpaceConverter
All Implemented Interfaces:
marvin.plugin.MarvinImagePlugin, marvin.plugin.MarvinPlugin

public class ColorSpaceConverter
extends marvin.plugin.MarvinAbstractImagePlugin

Locates faces in an image.


Constructor Summary
ColorSpaceConverter()
           
 
Method Summary
 void load()
           
 double max3nums(double a_red, double a_green, double a_blue)
           
 double min3nums(double a_red, double a_green, double 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)
          Convert the image from RGB to HSV.
 void process1(marvin.image.MarvinImage a_imageIn, marvin.image.MarvinImage a_imageOut, marvin.util.MarvinAttributes a_attributesOut, marvin.image.MarvinImageMask a_mask, boolean a_previewMode)
           
 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

ColorSpaceConverter

public ColorSpaceConverter()
Method Detail

load

public void load()

show

public void show()

process

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)
Convert the image from RGB to HSV. Conversion formula from http://en.wikipedia.org/wiki/HSL_color_space#Conversion_from_RGB_to_HSL_or_HSV

Parameters:
MarvinImage - - the image to be rotated
boolean - - to display a preview

process1

public void process1(marvin.image.MarvinImage a_imageIn,
                     marvin.image.MarvinImage a_imageOut,
                     marvin.util.MarvinAttributes a_attributesOut,
                     marvin.image.MarvinImageMask a_mask,
                     boolean a_previewMode)

max3nums

public double max3nums(double a_red,
                       double a_green,
                       double a_blue)

min3nums

public double min3nums(double a_red,
                       double a_green,
                       double a_blue)