Script execution
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import java.awt.Rectangle as Rectangle
|
||||
|
||||
import ch.psi.pshell.imaging.Data as Data
|
||||
class Exposure(Writable):
|
||||
def write(self,pos):
|
||||
@@ -9,8 +11,8 @@ exposure=Exposure()
|
||||
class Contrast(Readable):
|
||||
def read(self):
|
||||
data = img.getData()
|
||||
roi = Data(data.getRectSelection(500,300,700,600))
|
||||
return roi.getGradientVariance()
|
||||
#roi = Data(data.getRectSelection(500,300,700,600), False)
|
||||
return data.getGradientVariance(False, Rectangle(500,300,700,600))
|
||||
contrast=Contrast()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user