当前位置: 首页 > news >正文

上海找工作网站谷歌浏览器下载

上海找工作网站,谷歌浏览器下载,做网站设计公司价格,农村创业简介 MATLAB中的图像处理工具箱体统了一套全方位的标准算法和图形工具,用于进行图像处理、分析、可视化和算法开发。这里仅仅对常用的基础函数做个使用介绍。 查询图像文件的信息 使用如下函数 imfinfo(filename,fmt) 函数imfinfo返回一个结构体的info&#xff…

简介

MATLAB中的图像处理工具箱体统了一套全方位的标准算法和图形工具,用于进行图像处理、分析、可视化和算法开发。这里仅仅对常用的基础函数做个使用介绍。

查询图像文件的信息

使用如下函数

imfinfo(filename,fmt)

函数imfinfo返回一个结构体的info,其中包括了图像文件的信息,filename是指定图像文件的字符串,fmt是指定图像文件格式的字符串。通过此函数获得的信息与图像文件格式的字符串。通过此函数获得的信息与图像文件的类型有关,但至少包含以下一些内容。

imfinfo


>> info = imfinfo('测试图片.jpg')info = Filename: 'C:\Users\Dell\Desktop\atongbu\text\测试图片.jpg'FileModDate: '08-Sep-2023 14:37:07'FileSize: 226226Format: 'jpg'FormatVersion: ''Width: 1488Height: 878BitDepth: 24ColorType: 'truecolor'FormatSignature: ''NumberOfSamples: 3CodingMethod: 'Huffman'CodingProcess: 'Sequential'Comment: {}

图像文件的读写

MATLAB提供了imread函数来读取图像文件到工作区中。通过imread函数,用户可以导入多种格式的图像数据,如TIFF/HDF/BMP/JPEG/GIF/PCX/XWD/Cursor/Icon和PNG等格式。

>> RGB = imread('测试图片.jpg');
>> whosName        Size                  Bytes  Class    AttributesRGB       878x1488x3            3919392  uint8              >>

 

为了把MATLAB工作中的图像数据用一种标准格式输出到图像文件中,需要使用imwrite函数来完成这个工作。Imwrite函数用于将数据输出为多种标准的图像文件。

图像文件的显示

在MATLAB中,使用函数imshow来显示图像文件。

imshow(I) displays image I in a Handle Graphics® figure, where I is a grayscale, RGB (truecolor), or binary image. For binary images, imshow displays pixels with the value 0 (zero) as black and 1 as white. imshow optimizes figure, axes, and image object properties for image display.

example

imshow(X,map) displays the indexed image X with the colormap map. A colormap matrix can have any number of rows, but it must have exactly 3 columns. Each row is interpreted as a color, with the first element specifying the intensity of red light, the second green, and the third blue. Color intensity can be specified on the interval 0.0 to 1.0.

example

imshow(filename) displays the image stored in the graphics file specified by filename.

imshow(I,[low high]) displays grayscale image I, specifying the display range as a two-element vector, [low high]. For more information, see the DisplayRange parameter.

imshow(___,Name,Value) displays an image, using name-value pairs to control aspects of the operation.

himage = imshow(___) returns the handle to the image object created by imshow.

imshow(I) 显示灰度图像I

imshow(I,[low high]) 显示灰度图像I,[low, high]为图像数据的值域

imshow(RGB)显示真彩图像RGB

imshow(X,map)显示索引图像,X为索引图像的数据矩阵,map为颜色表

imshow(filename)显示filename文件的图像

himage = imshow(___)返回船舰图像对象的句柄

>> imshow('测试图片.jpg')
>>

 

图像的格式转换

rgb2gray

I = rgb2gray(RGB) converts the truecolor image RGB to the grayscale intensity image I. The rgb2gray function converts RGB images to grayscale by eliminating the hue and saturation information while retaining the luminance. If you have Parallel Computing Toolbox™ installed, rgb2gray can perform this conversion on a GPU.

example

newmap = rgb2gray(map) returns a grayscale colormap equivalent to map.

 

http://www.hrbkazy.com/news/3410.html

相关文章:

  • 没有网站怎么做CPC网络营销的方式包括
  • 公司年会活动方案策划农大南路网络营销推广优化
  • 如何建设数据库搜索网站企业网页设计与推广
  • 微信网站开放哪些平台可以免费发布产品
  • 软文营销网站网站运营方案
  • 怎么推广一个网站百度网站怎么提升排名
  • 电子商务网站建设与管理学习心得网站排名优化公司哪家好
  • 软件定制开发外包搜索引擎优化工作
  • aspnet动态网站开发考试江苏网络推广公司
  • 蒙阴建设局网站沈阳全网推广公司哪家好
  • 做go kegg的在线网站百度的广告
  • 网站收录很高站长工具seo综合查询收费吗
  • 专业做京东网站吗少儿培训
  • 商城 小程序沈阳seo合作
  • 公司网站建站软件seo详细教程
  • 网站屏蔽省份微信软文推广怎么做
  • 在线教育网站建设公司站长之家新网址
  • 云虚拟主机发布wordpressseo经验是什么
  • 新手怎么学做网站深圳优化公司义高粱seo
  • 怎么做网站后期维护网站网络排名优化方法
  • 网站备案信息真实性核验单流程软文推广的好处
  • 石家庄兼职做网站seo顾问服务 品达优化
  • 基层建设是哪个网站的seo网络优化教程
  • 遵义企业做网站百度营销网页版
  • 怎么看一个网站是否被k竞价外包推广
  • 免费做问卷的网站泰州seo网站推广
  • 东山网站建设中国唯一没有疫情的地方
  • 办公空间设计思路自建站seo如何做
  • 广东建设人才网站重庆百度seo代理
  • 免费做计算机题的网站今日热点新闻排行榜