List of usage examples for android.hardware.camera2.params LensShadingMap getGainFactor
public float getGainFactor(final int colorChannel, final int column, final int row)
From source file:com.android.camera2.its.ItsSerializer.java
@SuppressWarnings("unchecked") private static Object serializeLensShadingMap(LensShadingMap map) throws org.json.JSONException { JSONArray mapObj = new JSONArray(); for (int row = 0; row < map.getRowCount(); row++) { for (int col = 0; col < map.getColumnCount(); col++) { for (int ch = 0; ch < 4; ch++) { mapObj.put(map.getGainFactor(ch, col, row)); }/*from w ww . ja v a 2 s.c o m*/ } } return mapObj; }