搜索
bottom↓
回复: 14

4.3寸屏,480*272.显示彩色图片,有什么算法能看起来细腻点吗

[复制链接]

出0入0汤圆

发表于 2018-12-4 22:56:01 | 显示全部楼层 |阅读模式
还是只能换个高分屏?

阿莫论坛20周年了!感谢大家的支持与爱护!!

月入3000的是反美的。收入3万是亲美的。收入30万是移民美国的。收入300万是取得绿卡后回国,教唆那些3000来反美的!

出0入0汤圆

发表于 2018-12-4 23:13:48 | 显示全部楼层
分辨率摆在这里了,你觉得呢?

出0入4汤圆

发表于 2018-12-4 23:54:27 | 显示全部楼层
感觉高清的图片都会细腻,屏的分辨率很高了。。。

出0入0汤圆

发表于 2018-12-5 08:54:54 | 显示全部楼层
这个只能靠UI的技术了,过渡色不要太多,整个页面颜色对比不要太明显,看起来效果可能会好一些。

出0入0汤圆

发表于 2018-12-5 09:05:54 | 显示全部楼层
换成800*480分辨率的好很多的。

出0入0汤圆

发表于 2018-12-5 10:41:45 | 显示全部楼层
显示的是16位色吗,有算法可以改善显示效果的

出0入0汤圆

 楼主| 发表于 2018-12-5 11:00:26 | 显示全部楼层
czg1411 发表于 2018-12-5 10:41
显示的是16位色吗,有算法可以改善显示效果的

是16位色,什么算法呢?

出0入0汤圆

 楼主| 发表于 2018-12-5 11:01:17 | 显示全部楼层
抗锯齿只能是单色图片的轮廓有效果,彩色图抗锯齿好像没什么用

出0入0汤圆

发表于 2018-12-5 11:05:04 | 显示全部楼层
zkmcu 发表于 2018-12-5 11:00
是16位色,什么算法呢?

抖动算法,看你的原图和显示的图对比效果

出0入0汤圆

发表于 2018-12-5 11:05:49 | 显示全部楼层
字体 或者 有曲度的线 加抗锯齿

出0入0汤圆

发表于 2018-12-7 14:46:19 | 显示全部楼层
楼上加1,抗锯齿

出0入0汤圆

发表于 2018-12-10 17:39:26 | 显示全部楼层
看你的驱动芯片是什么

出0入0汤圆

发表于 2018-12-11 10:31:13 | 显示全部楼层

试试这种抖动算法。
https://en.wikipedia.org/wiki/Ordered_dithering

============================================

/* Dither Tresshold for Red Channel */
static const BYTE dither_tresshold_r[64] = {
  1, 7, 3, 5, 0, 8, 2, 6,
  7, 1, 5, 3, 8, 0, 6, 2,
  3, 5, 0, 8, 2, 6, 1, 7,
  5, 3, 8, 0, 6, 2, 7, 1,

  0, 8, 2, 6, 1, 7, 3, 5,
  8, 0, 6, 2, 7, 1, 5, 3,
  2, 6, 1, 7, 3, 5, 0, 8,
  6, 2, 7, 1, 5, 3, 8, 0
};

/* Dither Tresshold for Green Channel */
static const BYTE dither_tresshold_g[64] = {
  1, 3, 2, 2, 3, 1, 2, 2,
  2, 2, 0, 4, 2, 2, 4, 0,
  3, 1, 2, 2, 1, 3, 2, 2,
  2, 2, 4, 0, 2, 2, 0, 4,

  1, 3, 2, 2, 3, 1, 2, 2,
  2, 2, 0, 4, 2, 2, 4, 0,
  3, 1, 2, 2, 1, 3, 2, 2,
  2, 2, 4, 0, 2, 2, 0, 4
};

/* Dither Tresshold for Blue Channel */
static const BYTE dither_tresshold_b[64] = {
  5, 3, 8, 0, 6, 2, 7, 1,
  3, 5, 0, 8, 2, 6, 1, 7,
  8, 0, 6, 2, 7, 1, 5, 3,
  0, 8, 2, 6, 1, 7, 3, 5,

  6, 2, 7, 1, 5, 3, 8, 0,
  2, 6, 1, 7, 3, 5, 0, 8,
  7, 1, 5, 3, 8, 0, 6, 2,
  1, 7, 3, 5, 0, 8, 2, 6
};

/* Get 16bit closest color */
BYTE closest_rb(BYTE c) {
  return (c >> 3 << 3); /* red & blue */
}
BYTE closest_g(BYTE c) {
  return (c >> 2 << 2); /* green */
}

/* RGB565 */
WORD RGB16BIT(BYTE r, BYTE g, BYTE b) {
  return ((WORD)((r>>3)<<11)|((g>>2)<<5)|(b>>3));
}

/* Dithering by individual subpixel */
WORD dither_xy(
  int x,
  int y,
  BYTE r,
  BYTE g,
  BYTE b
){
  /* Get Tresshold Index */
  BYTE tresshold_id = ((y & 7) << 3) + (x & 7);

  r = closest_rb(
          MIN(r + dither_tresshold_r[tresshold_id], 0xff)
       );
  g = closest_g(
          MIN(g + dither_tresshold_g[tresshold_id], 0xff)
       );
  b = closest_rb(
          MIN(b + dither_tresshold_b[tresshold_id], 0xff)
       );
  return RGB16BIT(r, g, b);
}

/* Dithering Pixel from 32/24bit RGB
*
* GetR, GetG, GetB -> Function to get individual color in pixel
*
*/
WORD dither_color_xy(int x, int y, DWORD col) {
  return dither_xy(x, y, GetR(col), GetG(col), GetB(col));
}

/* EXAMPLES */
void ExampleDither1(WORD * dest, DWORD * src, int width, int height){
  int x, y;
  for (y=0; y<height; y++){
    for (x=0; x<width; x++){
      int pos = y * width + x;
      dest[pos] = dither_color_xy(x,y,src[pos]);
    }
  }
}
void ExampleDither2(WORD * dest, BYTE * src, int width, int height){
  int x, y;
  for (y=0; y<height; y++){
    for (x=0; x<width; x++){
      int pos = y * width + x;
      dest[pos] = dither_xy(x,y,src[pos*3],src[pos*3+1],src[pos*3+2]);
    }
  }
}

出0入0汤圆

发表于 2018-12-21 11:53:48 | 显示全部楼层
最好减少渐变色,增强使用的颜色的反差。比如背景纯黑,内容用比较亮的蓝色、红色、黄色这种,看起来会好很多。

出150入640汤圆

发表于 2018-12-21 12:04:19 | 显示全部楼层
细心配色,不要大红大绿大蓝,参见啤酒盖子家的温酒吧配色,尽量不要使用渐变色。
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-4-26 08:30

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表