2

I'd like to find some code for a very fast bitmap resampling using Lanczos filter. Currently using this: http://pastebin.com/JxuqLXB9

I've been looking for a faster implementation, to no avail. Tried some implementations from GraphicsEx, Graphics32, madGraphics, JEDI, they were all slower than this.

hikari
  • 3,393
  • 1
  • 33
  • 72
  • 'tried some procs' - which one? Do you need only a faster Lanczos implementation or you have a specific problem and you want to solve it? – RBA Dec 21 '12 at 09:58
  • I just want a faster Lanczos, not related to any specific problem/situation. – hikari Dec 21 '12 at 10:00
  • Maybe you'd need to recompile it in Win64 using SSE Or maybe you'd better ditch Delphi and use some C DLL with Delphi wrapper – Arioch 'The Dec 21 '12 at 10:48
  • the example linked by RBA is quite nice, got it from 15ms with the original resample down to ~10 per iteration in my sample, so around 33% faster. – hikari Dec 21 '12 at 10:50

1 Answers1

2

This answer should improve the timing of your scaling process - Scale an image nicely in Delphi?.

I do not have any other knowledge about a faster implementation of the Lanczos resampling.

Community
  • 1
  • 1
RBA
  • 12,337
  • 16
  • 79
  • 126