From ba2831c3a456e860761978cb848f38d825b4c128 Mon Sep 17 00:00:00 2001 From: Comment Date: Mon, 7 Oct 2013 06:19:14 -0700 Subject: refacoring --- rotord/src/nodes_transform.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rotord/src/nodes_transform.h') diff --git a/rotord/src/nodes_transform.h b/rotord/src/nodes_transform.h index 99f553e..cced1b0 100644 --- a/rotord/src/nodes_transform.h +++ b/rotord/src/nodes_transform.h @@ -67,7 +67,12 @@ namespace Rotor { //normally a scale of 1 will place the image on screen at pixel size //it should be that a scale of 1 places it at width w //how to scale around the centre + + //using mipmaps: cv::Mat inter; + int level=(int)pow(2, ceil(log(1.0f/(s*((float)in.w/(float)image.w)))/log(2))); + + //if (s<1){ // if (s<.01) s=.01; // float scalefac=((float)image.w/in->w)*s; -- cgit v1.2.3