博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
很有用的图像数据转换工具
阅读量:4069 次
发布时间:2019-05-25

本文共 1076 字,大约阅读时间需要 3 分钟。

IMAGEMAGICK

// Display a 800x600 rgb image

display -size 800x600 -depth 8 rgb:output.rgb

// Show information of output.rgb

identify -size 1296x972 -depth 8 output.rgb

// Convert a 640x480 grayscale raw rgb file to png

convert -size 640x480 -depth 8 imagefile.rgb image.png

// To list all available color formats

identify -list format

FFMPEG

// List available formats for ffmpeg

ffmpeg -pix_fmts

// Convert raw rgb565 image to png

ffmpeg -vcodec rawvideo -f rawvideo -pix_fmt rgb565 -s 1024x768 -i freescale_1024x768.raw -f image2 -vcodec png screen.png

// Convert png to raw rgb565

ffmpeg -vcodec png -i image.png -vcodec rawvideo -f rawvideo -pix_fmt rgb565 image.raw

// Convert a 720x480 NV12 (YUV 420 semi-planar) image to png

ffmpeg -s 720x480 -pix_fmt nv12 -i image-nv12.yuv -f image2 -pix_fmt rgb24 image-png.png

// Convert a 640x480 uyvy422 image to png

ffmpeg -s 640x480 -pix_fmt uyvy422 -i image-uyvy422.yuv -f image2 -pix_fmt rgb24 image-uyvy422.png

RGB raw数据显示GIMP软件可以显示RGB数据,文件->打开 选择 raw image data

然后指定图像大小 rgb格式就可以正常显示.

另外,GIMP中还能将rgb图像数据导出成.c或者.h文件,可以在C程序里面使用.

转载地址:http://ewhji.baihongyu.com/

你可能感兴趣的文章
关于进制转换的具体实现代码
查看>>
Golang 数据可视化利器 go-echarts ,实际使用
查看>>
mysql 跨机器查询,使用dblink
查看>>
mysql5.6.34 升级到mysql5.7.32
查看>>
dba 常用查询
查看>>
Oracle 异机恢复
查看>>
Oracle 12C DG 搭建(RAC-RAC/RAC-单机)
查看>>
Truncate 表之恢复
查看>>
Oracle DG failover 后恢复
查看>>
mysql 主从同步配置
查看>>
为什么很多程序员都选择跳槽?
查看>>
mongdb介绍
查看>>
mongdb在java中的应用
查看>>
区块链技术让Yotta企业云盘为行政事业服务助力
查看>>
Yotta企业云盘更好的为媒体广告业服务
查看>>
Yotta企业云盘助力科技行业创高峰
查看>>
Yotta企业云盘更好地为教育行业服务
查看>>
Yotta企业云盘怎么帮助到能源化工行业
查看>>
企业云盘如何助力商业新发展
查看>>
医疗行业运用企业云盘可以带来什么样的提升
查看>>