switch(function.getType()){
case ComponentTransferFunction.IDENTITY:
txfFunc = new IdentityTransfer();
break;
case ComponentTransferFunction.TABLE:
txfFunc = new TableTransfer(tableFloatToInt(function.getTableValues()));
break;
case ComponentTransferFunction.DISCRETE:
txfFunc = new DiscreteTransfer(tableFloatToInt(function.getTableValues()));
break;
case ComponentTransferFunction.LINEAR: