Ejemplo n.º 1
0
 def _on_scale(self, stream, i, value):
     logging.debug("New scale = %f on stream %s", value, stream.name.value)
     scalecor = stream.raw[0].metadata.get(model.MD_PIXEL_SIZE_COR, (1, 1))
     if i == 0:
         scalecor = (value, scalecor[1])
     else:
         scalecor = (scalecor[0], value)
     stream.raw[0].metadata[model.MD_PIXEL_SIZE_COR] = scalecor
     stream._shouldUpdateImage()
Ejemplo n.º 2
0
 def _on_trans(self, stream, i, value):
     logging.debug("New trans = %f on stream %s", value, stream.name.value)
     poscor = stream.raw[0].metadata.get(model.MD_POS_COR, (0, 0))
     if i == 0:
         poscor = (-value, poscor[1])
     else:
         poscor = (poscor[0], -value)
     stream.raw[0].metadata[model.MD_POS_COR] = poscor
     stream._shouldUpdateImage()
Ejemplo n.º 3
0
 def _on_scale(self, stream, i, value):
     logging.debug("New scale = %f on stream %s", value, stream.name.value)
     scalecor = stream.raw[0].metadata.get(model.MD_PIXEL_SIZE_COR, (1, 1))
     if i == 0:
         scalecor = (value, scalecor[1])
     else:
         scalecor = (scalecor[0], value)
     stream.raw[0].metadata[model.MD_PIXEL_SIZE_COR] = scalecor
     stream._shouldUpdateImage()
Ejemplo n.º 4
0
 def _on_trans(self, stream, i, value):
     logging.debug("New trans = %f on stream %s", value, stream.name.value)
     poscor = stream.raw[0].metadata.get(model.MD_POS_COR, (0, 0))
     if i == 0:
         poscor = (-value, poscor[1])
     else:
         poscor = (poscor[0], -value)
     stream.raw[0].metadata[model.MD_POS_COR] = poscor
     stream._shouldUpdateImage()
Ejemplo n.º 5
0
 def _on_rotation(self, stream, value):
     logging.debug("New rotation = %f on stream %s", value,
                   stream.name.value)
     stream.raw[0].metadata[model.MD_ROTATION_COR] = value
     stream._shouldUpdateImage()
Ejemplo n.º 6
0
 def _on_rotation(self, stream, value):
     logging.debug("New rotation = %f on stream %s", value, stream.name.value)
     stream.raw[0].metadata[model.MD_ROTATION_COR] = value
     stream._shouldUpdateImage()