更新时间:2023-11-11 21:03:16
您需要做的是这样:
dir
,该函数返回带有组件name
的结构.imwrite(S,'./newfolder/D-1.jpg')
.dir
, which returns a structure with a component name
.imwrite(S,'./newfolder/D-1.jpg')
. 转换后图像的属性是否有变化?通常是的,因为png和jpeg编码的信息有所不同. Matlab函数imread
和imwrite
的帮助对此进行了解释.您可能会发现自己需要或想要在写入图像之前对其进行修改.
Are there any changes to the properties of the image after conversion ? In general yes, since there are differences in the information that png and jpeg encode. The Matlab help for functions imread
and imwrite
explain some of this. You may find that you need, or want, to modify the image that you read before writing it.