DESY ACOP Beans Home

de.desy.acop.video.analysis
Interface ColorDecoder

All Known Implementing Classes:
AverageColorDecoder, IdentityColorDecoder, LuminosityColorDecoder, RGBColorDecoder

public interface ColorDecoder

ColorDecoder interface provides a means of transforming the TYPE_INT_ARGB integer color code into a meaningful double value.

Author:
Tilen Kusterle, Cosylab

Method Summary
 double transform(int code)
          Deprecated. use transform(int[]) to transform the whole array at once
 double[] transform(int[] data)
          Transforms the complete array of TYPE_INT_ARGB integer colors codes into meaningful double value array.
 

Method Detail

transform

@Deprecated
double transform(int code)
Deprecated. use transform(int[]) to transform the whole array at once

Transforms the TYPE_INT_ARGB integer color code into a meaningful double value.

Parameters:
code - the TYPE_INT_ARGB integer color code
Returns:
a meaningful double value

transform

double[] transform(int[] data)
Transforms the complete array of TYPE_INT_ARGB integer colors codes into meaningful double value array. Use this method with large arrays in order to avoid calling transform(int) many times, which might be costly.

Parameters:
data - the data to transform
Returns:
the transformed values


Copyright © 2010. All Rights Reserved.