From bd90799e7036348b58cc40ce4d6e80e74139e6a2 Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Mon, 2 Mar 2015 18:29:27 +0100 Subject: [PATCH] remove img code example, that uses concepts not present anymore --- examples/code_fragments/img/modulate_image.py | 23 ------------------- 1 file changed, 23 deletions(-) delete mode 100644 examples/code_fragments/img/modulate_image.py diff --git a/examples/code_fragments/img/modulate_image.py b/examples/code_fragments/img/modulate_image.py deleted file mode 100644 index 1222f9b16..000000000 --- a/examples/code_fragments/img/modulate_image.py +++ /dev/null @@ -1,23 +0,0 @@ -import math -import ost.img.alg - -class modulator(img.RealFunction): - def __init__(self,f): - img.RealFunction.__init__(self) - self.f = f - - def Func(self,point): - return math.sin(point[0]*self.f)*math.sin(point[1]*self.f) - -im = img.CreateImage(img.Size(400,200)) -im.ApplyIP(img.alg.Randomize()) - -im2 = im * modulator( 0.1 ) - -im2.SetSpatialOrigin(img.Point(0,200)) - -im3 = img.CreateImage(img.Size(400,400)) -im3.Paste(im) -im3.Paste(im2) - -v=gui.CreateDataViewer(im3,"Modulated Image") -- GitLab