diff options
| author | Comment <tim@gray.(none)> | 2013-10-07 06:19:14 -0700 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-10-07 06:19:14 -0700 |
| commit | ba2831c3a456e860761978cb848f38d825b4c128 (patch) | |
| tree | 7ced990051d059fae90fd55cea40ef3f3cbdb333 /rotord/src/nodes_transform.h | |
| parent | 3252e78c0a43613e2a48d39a8dec74ffaf5ee100 (diff) | |
refacoring
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; |
