Ejemplo n.º 1
0
 def _updateItem(self, item, row):
     """ Update also the sampling rate and 
     the alignment if needed.
     """
     XmippProcessParticles._updateItem(self, item, row)
     if self.doResize:
         item.setSamplingRate(self.samplingRate)
         if self.inputHasAlign:
             item.getTransform().scaleShifts2D(1./self.factor)
Ejemplo n.º 2
0
 def _updateItem(self, item, row):
     """ Update also the sampling rate and 
     the alignment if needed.
     """
     XmippProcessParticles._updateItem(self, item, row)
     if self.doResize:
         if item.hasCoordinate():
             item.scaleCoordinate(self.factor)
         item.setSamplingRate(self.samplingRate)
         if self.inputHasAlign:
             item.getTransform().scaleShifts(self.factor)
Ejemplo n.º 3
0
 def _updateItem(self, item, row):
     """ Update also the sampling rate and 
     the alignment if needed.
     """
     XmippProcessParticles._updateItem(self, item, row)
     if self.doResize:
         if item.hasCoordinate():
             factor = self.samplingRate / item.getSamplingRate()
             coord = item.getCoordinate()
             coord.setX(coord.getX() / factor)
             coord.setY(coord.getY() / factor)
             item.setCoordinate(coord)
             
         item.setSamplingRate(self.samplingRate)
             
         
         if self.inputHasAlign:
             item.getTransform().scaleShifts2D(1./self.factor)
 def __init__(self, **args):
     ProtProcessParticles.__init__(self, **args)
     XmippProcessParticles.__init__(self)
     XmippProtImageOperate.__init__(self, self._isParticle, **args)
Ejemplo n.º 5
0
 def __init__(self, **kwargs):
     XmippProcessParticles.__init__(self, **kwargs)
Ejemplo n.º 6
0
 def __init__(self, **kwargs):
     ProtMaskParticles.__init__(self, **kwargs)
     XmippProcessParticles.__init__(self, **kwargs)
     XmippProtMask.__init__(self, **kwargs)
Ejemplo n.º 7
0
 def __init__(self, **kwargs):
     ProtFilterParticles.__init__(self, **kwargs)
     XmippProcessParticles.__init__(self, **kwargs)
     self._program = "xmipp_transform_filter"
 def __init__(self, **args):
     ProtOperateParticles.__init__(self, **args)
     XmippProcessParticles.__init__(self)
     XmippOperateHelper.__init__(self, **args)
     self.allowMpi = False
     self.allowThreads = False
Ejemplo n.º 9
0
 def __init__(self, **args):
     ProtOperateParticles.__init__(self, **args)
     XmippProcessParticles.__init__(self)
     XmippOperateHelper.__init__(self, **args)
Ejemplo n.º 10
0
 def __init__(self, **kwargs):
     ProtFilterParticles.__init__(self, **kwargs)
     XmippProcessParticles.__init__(self, **kwargs)
     self._program = "xmipp_transform_filter"
Ejemplo n.º 11
0
 def __init__(self, **kwargs):
     ProtMaskParticles.__init__(self, **kwargs)
     XmippProcessParticles.__init__(self, **kwargs)
     XmippProtMask.__init__(self, **kwargs)
     self.allowThreads = False
     self.allowMpi = False
Ejemplo n.º 12
0
 def __init__(self, **kwargs):
     ProtFilterParticles.__init__(self, **kwargs)
     XmippProcessParticles.__init__(self, **kwargs)
     self._program = "xmipp_transform_filter"
     self.allowMpi = False
     self.allowThreads = False
Ejemplo n.º 13
0
 def __init__(self, **kwargs):
     ProtFilterParticles.__init__(self, **kwargs)
     XmippProcessParticles.__init__(self, **kwargs)
     self._program = "xmipp_transform_filter"
     self.allowMpi = False
     self.allowThreads = False