In [1]:
import matplotlib.pyplot as plt
from matplotlib import gridspec
import sys
import os
import otbApplication
In [18]:
file='despeckle.tif'
ReadImageInfo = otbApplication.Registry.CreateApplication("ReadImageInfo")
ReadImageInfo.SetParameterString("in", file)
ReadImageInfo.SetParameterString("outkwl", 'info.txt')
ReadImageInfo.ExecuteAndWriteOutput()
Out[18]: