Example #1
0
  @Override
  public void setProperties(LibProperties properties) {
    type = TYPE.valueOf(properties.getString(LibProperties.COLOR_HISTOGRAMS_TYPE));
    binX = properties.getInteger(LibProperties.COLOR_HISTOGRAMS_BINS_X);
    binY = properties.getInteger(LibProperties.COLOR_HISTOGRAMS_BINS_Y);
    binZ = properties.getInteger(LibProperties.COLOR_HISTOGRAMS_BINS_Z);

    checkNotNull(type, "type must not be null");
    checkArgument(binX > 0, "bin x must be >0 but was " + binX);
    checkArgument(binY > 0, "bin y must be >0 but was " + binY);
    checkArgument(binZ > 0, "bin z must be >0 but was " + binZ);
  }
Example #2
0
 @Override
 public void setProperties(LibProperties properties) throws IOException {
   setHaralickDist(properties.getInteger(LibProperties.HARALICK_DISTANCE, 1));
 }