博客
关于我
matlab数字图像处理初级入门
阅读量:113 次
发布时间:2019-02-26

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

步骤说明:

  • 使用 imread 函数读取图像文件,成功读取后将图像赋值给矩阵 A,此时 A 是一个二维矩阵。

  • 使用 whos A 查看矩阵 A 的详细信息,包括矩阵的大小、类型和内存占用情况。

  • 输入矩阵 A 并回车,系统会显示矩阵中的数据值,这些数据值反映了图像所包含的图像信息。

  • 使用 imshow 函数显示图像,注意到精简版 MATLAB 不支持 imshow 函数。可以通过 figure 命令开启一个新窗口,在新窗口中使用 imshow 显示图像。

  • 使用 imhist 函数绘制图像直方图,注意到精简版 MATLAB 不支持 imhist 函数。

  • 对图像进行旋转操作,赋值给矩阵 B,使用 imrotate 函数旋转图像,旋转角度设置为 45 度,第三个参数设置为插值方法。

  • 对图像进行傅里叶变换等其他处理后,使用 imwrite 函数将处理后的图像保存到磁盘,例如将矩阵 A 保存为文件 test2.jpg

  • 转载地址:http://myyy.baihongyu.com/

    你可能感兴趣的文章
    org.apache.poi.hssf.util.Region
    查看>>
    org.apache.xmlbeans.XmlOptions.setEntityExpansionLimit(I)Lorg/apache/xmlbeans/XmlOptions;
    查看>>
    org.apache.zookeeper.KeeperException$ConnectionLossException: KeeperErrorCode = ConnectionLoss for /
    查看>>
    org.hibernate.HibernateException: Unable to get the default Bean Validation factory
    查看>>
    org.hibernate.ObjectNotFoundException: No row with the given identifier exists:
    查看>>
    org.springframework.boot:spring boot maven plugin丢失---SpringCloud Alibaba_若依微服务框架改造_--工作笔记012
    查看>>
    SQL-CLR 类型映射 (LINQ to SQL)
    查看>>
    org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
    查看>>
    org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
    查看>>
    org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded
    查看>>
    org.tinygroup.serviceprocessor-服务处理器
    查看>>
    org/eclipse/jetty/server/Connector : Unsupported major.minor version 52.0
    查看>>
    org/hibernate/validator/internal/engine
    查看>>
    Orleans框架------基于Actor模型生成分布式Id
    查看>>
    SQL-36 创建一个actor_name表,将actor表中的所有first_name以及last_name导入改表。
    查看>>
    ORM sqlachemy学习
    查看>>
    Ormlite数据库
    查看>>
    orm总结
    查看>>
    os.environ 没有设置环境变量
    查看>>
    os.path.join、dirname、splitext、split、makedirs、getcwd、listdir、sep等的用法
    查看>>