diff options
Diffstat (limited to 'rotord/src/nodes_transform.h')
| -rw-r--r-- | rotord/src/nodes_transform.h | 5 |
1 files changed, 5 insertions, 0 deletions
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; |
