原创 MATLAB讀取視頻並按幀保存

%存第k幀 clc; clear; video_file='D:\pictures\5.mp4';%讀取視頻位置 obj=VideoReader(video_file); frame_num=obj.NumberOfFrames

原创 MATLAB根據已知數學公式畫三維圖像

X=[0:0.1:1]; Y=[0:0.1:1]; [X,Y]=meshgrid(X,Y); Z=(3.9*exp((-0.25)*(9*X-2)^2-0.25*(9*Y-2)^2)+3.9*exp((-1)*(9*X+1)^2/

原创 MATLAB數字圖像處理提取顏色分量

clear; close all; clc; img=imread('D:\pictures\lena1.jfif');%讀入原彩色圖像 imshow(img);%展現圖像 %對紅色分量提取 img_r=img(:,:,1); i

原创 python轉圖片爲手繪圖像

正確代碼: >>> from PIL import Image >>> import numpy as np >>> a = np.asarray(Image.open('D:\pictures\me.jpg').convert(

原创 spyder (python3.7)背景設置

spyder python3.7背景設置 白色高亮背景模式:Tools->Appearance->syntax highlighting them->Spyder 黑色護眼背景模式:Tools->Appearance->synta

原创 web前端技術-表格和導航欄(基本標籤及CSS樣式的應用)

1、網頁表格製作:學習製作的表格的寬高、顏色、內容等各種格式 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR

原创 web前端技術,第一次簡單的網頁製作

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional

原创 Python列表 元組 字典 集合 字符串的區別

python常用內置數據類型的總結: 1.形式: 列表list:[1,2,3] [a,b,c] [‘myss’,{2},(1,3),[‘c’,2],{65:‘A’}] 【所有元素放在一對方括號中,元素之間使用逗號分隔,其中的元

原创 MATLAB將彩色/灰色圖像轉二值圖像,彩色轉灰色

clear; close all; clc; img=imread('D:\pictures\lena1.jfif');%讀入原彩色圖像 imshow(img);%展現圖像 %彩色轉二值圖像 thresh = graythre