new gegl-sampler code (GSoC): maximum expected downsampling ratio

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In case it turns out to be difficult to set the context_rect to be
variable (set on an output pixel by pixel basis--Eric is looking into
this), I'd like to know what I could assume is the largest reasonable
downsampling ratio, meaning that larger downsampling ratios would be
clamped down to this ceiling. Such clamping would allow us to set the
context rectangle to a (reasonably small) fixed value.

More specifically, could I reasonably clamp the downsampling ratio (in
each direction) to one of the following values?

   1.0 (context_rect.width = 4)
   2.7182818284 (context_rect.width = 5)
   7.3890560989 (context_rect.width = 6)
   20.0855369231 (context_rect.width = 7)
   54.5981500331
   148.4131591025
   403.4287934927
   1096.6331584284 
   2980.9579870417 (context_rect.width = 12)

(first and last ones included for the sake of completeness.)

The smaller the maximum, the faster the code will run.

(As the above table makes pretty obvious, the method will be more
suitable for mild downsampling that "heavy duty.")

Nicolas Robidoux
Universite Laurentienne
_______________________________________________
Gegl-developer mailing list
Gegl-developer@xxxxxxxxxxxxxxxxxxxxxx
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gegl-developer

[Index of Archives]     [Yosemite News]     [Yosemite Photos]     [gtk]     [GIMP Users]     [KDE]     [Gimp's Home]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux