所以这是我的问题:
我有一个图像,图像很大(高分辨率),它需要很小(低得多的分辨率).
所以我做了天真的事情(杀死所有其他像素),结果看起来很糟糕.
所以我尝试做一些更聪明的事情(使用傅里叶变换进行低通滤波并在傅立叶空间重新采样),结果稍好但仍然相当差.
所以我的问题是,是否有一个感知动机的图像下采样算法(或实现)?
编辑:虽然我知道一些重采样技术,但我的应用程序更关心的是保留感知功能,而不是产生平滑的图像.
edit2:可以安全地假设我对数字信号处理,卷积,小波变换等有一定程度的熟悉
您好,我正在开发一个程序,将 640x480 位图图像缩小为 320x240 图像。我已经研究这个问题有一段时间了,但我发现的所有好的例子都是为了增加图像的大小。
(参见此处:http://cboard.cprogramming.com/c-programming/154737-help-program-resize-image.html)
我很难将该计划中所做的事情转化为我需要完成的事情。到目前为止,这是我的代码:
include stdio.h
include stdlib.h
include string.h
include math.h
pragma pack(push, 1)
typedef struct tagBITMAPFILEHEADER
{
unsigned short bfType; //specifies the file type
unsigned int bfSize; //specifies the size in bytes of the bitmap file
unsigned short bfReserved1; //reserved; must be 0
unsigned short bfReserved2; //reserved; must be 0
unsigned int bfOffBits; //species the offset in bytes from the bitmapfileheader to the bitmap bits
} BITMAPFILEHEADER;
pragma pack(pop)
pragma pack(push, 1)
typedef …Run Code Online (Sandbox Code Playgroud)