Example #1
0
 def transform_streamels(self, streamels):
     # Check that it is a 2D float image
     check_streamels_2D(streamels)
     check_streamels_continuous(streamels)
     self.shape_from = streamels.shape
     self.vmin = np.min(streamels['lower'])
     self.vmax = np.max(streamels['upper'])
     return make_streamels_2D_float(self.shape_to,
                                    lower=self.vmin, upper=self.vmax)
Example #2
0
 def get_stream_spec(self):
     streamels = make_streamels_2D_float(shape=self.shape, lower=0, upper=1)
     return StreamSpec(id_stream=None, streamels=streamels, extra=None)