def imagePlot(self, panel=None): if panel is None: panel=self.panel; da=self.chData.cagetArrayUnsigned(); ds = IntegerDataset.createFromObject(da); newds=ds.reshape([self.height, self.width]); SDAPlotter.imagePlot(panel, newds);
def imagePlot2(self, panel=None): if panel is None: panel=self.panel; da=self.chData.cagetArrayByte(); #To convert from singed to unsigned #method 2 da=[x&0xff for x in da] #method 3 # ds1=array.array('B' [x&0xff for x in ds1] ) ds = IntegerDataset.createFromObject(da); newds=ds.reshape([self.height, self.width]); SDAPlotter.imagePlot(panel, newds);