我正在做一个可能需要我计算图像的 DCT 的项目。因此问题。
2 回答
-> Is there a fast way of pixel-by-pixel proceccing images in PHP
I think it would be best to process the files using another language instead of PHP or library/application such as - ImageMagick php.net/manual/en/book.imagick.php. I've never used this myself, so don't really know performance issues. Also -> wideimage.sourceforge.net/ The GD functions, as described in the previous answer, are quite slow, and sometimes can take a huge chunk of the CPU for processing.
Take a look here for seperate benchmarks etc: http://kore-nordmann.de/blog/comparison_of_php_image_libraries_update.html
GD 具有逐像素操作,但它们并不是特别快:imagecolorat()和imagesetpixel()