Hi,
first of all thanks for the great library!!
However I got a problem resizing images because I always get rectangles in areas with the same or very similar color (such as the sky, wall etc). The rest of image (for example faces) are perfect. I used bicubic filter, I also tried to change the hardcoded value in the following code (in Imaging.pas, line 2334) to use other filters (sfGaussian, sfLanczos, sfMitchell) but the only difference was that the size of the rectangles has changed a little.
rfBicubic: StretchResample(WorkImage, SrcX, SrcY, SrcWidth, SrcHeight,
DstImage, DstX, DstY, DstWidth, DstHeight, sfCatmullRom);
Am I doing something wrong or is this a bug? I used to use the attached unit in the previous versions of my program and that one produces much better results (you can compare, all attached).
Source: JPEG (from a camera)
Resolution: 13 MPix
The original picture is too large so you can get it from here: http://www.ildam.cz/foto/IMG_3692.JPG
Please help!
Thanks, David
first of all thanks for the great library!!
However I got a problem resizing images because I always get rectangles in areas with the same or very similar color (such as the sky, wall etc). The rest of image (for example faces) are perfect. I used bicubic filter, I also tried to change the hardcoded value in the following code (in Imaging.pas, line 2334) to use other filters (sfGaussian, sfLanczos, sfMitchell) but the only difference was that the size of the rectangles has changed a little.
rfBicubic: StretchResample(WorkImage, SrcX, SrcY, SrcWidth, SrcHeight,
DstImage, DstX, DstY, DstWidth, DstHeight, sfCatmullRom);
Am I doing something wrong or is this a bug? I used to use the attached unit in the previous versions of my program and that one produces much better results (you can compare, all attached).
Source: JPEG (from a camera)
Resolution: 13 MPix
The original picture is too large so you can get it from here: http://www.ildam.cz/foto/IMG_3692.JPG
Please help!
Thanks, David