亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? demo_accelerate.m

?? Accelerating execution speed of fixed-point algorithms in MATLAB and Simulink
?? M
字號(hào):
%% In this demo we show how we accelerate substantially
% the execution speed of a fixed-point algorithm in MATLAB
% with the new Fixed-Point Toolbox acceleration function called
% EMLMEX
% The idea is to resize a color image matrix. This operation is
% a very useful operation with widespread use all over image processing
% First, Read a large color image:
I = imread('peppers.png');
Nr=size(I,1);
Nc=size(I,2);
N3=size(I,3);
figure;imagesc(I);
%% The idea is to resize the image to 1/4 of its originl size
% half rows and half the columns
% Note that any resizing factor is allowed and works as well, 
% just for simplicity we stick with half.
Iout=uint8(zeros([Nr/2 Nc/2 size(I,3)]));
whos I Iout
%% We have 3 color channels: red, green and blue 
% Turn each of these channels to fixed-point using fi() operator
% They become unsigned 8-bit integer data types as expected.
R=fi(I(:,:,1));
G=fi(I(:,:,2));
B=fi(I(:,:,3));
whos R G B
B.numerictype
%% Initilize output resized matrices for each of these color channels 
Rout=fi(Iout(:,:,1));
Gout=fi(Iout(:,:,2));
Bout=fi(Iout(:,:,3));
whos Rout Gout Bout
Rout.numerictype
%% Take a look at minimum and maximum values of each input matrix
% as expected between 0 and 255 (dynamic range of uint8)
% note that minimum of red is 5 a little higher, 
% there is a little more red in this particular picture
max_min=[max(max(R)) max(max(G)) max(max(B));
min(min(R)) min(min(G)) min(min(B))]
%% Let's do the resizing with and without acceleration 
% and let's note how long it takes
% I wrote a function hz_resize.m to do that, 
% Algorithm is essentially a sweep through all 2x2 pixel elements of 
% the image, replacing each 2x2 pixel elements with its average
% I use the same average function I developed in last demo, except
% I make it a little simpler, chaanging a divide by 4 operator with a
% simpler shift right by 2 bits 
% Note that in fixed-point processing it is customary to replace 
% all divides by powers of 2 with more efficient bit-shift operations
% How amny 2x2 pixel elements we go through for the whole image?
No_of_averages=size(R,1)*size(R,2)/4
which hz_resize
%% Now resize the red channel by factor of 1/4 
% without using fixed-point acceleration
% Observe how muchtime is spent
tic;
Rout=hz_resize(R,Rout,Nr,Nc);
toc;
%% Now using Fixed-Point Toolbox new function emlmex 
% automatically generate a comiled C version of hz_resize.m funcion
% Note that without need to writing algorithm in C for fast simulation, you
% can run the algorithm at compiled C code speed while you are in MATLAB 
% and you have not written a line of C code by hand!
emlmex -eg {R, Rout, Nr, Nc} hz_resize
%% Let's run the accelerated mex version of the same resize function for 
% the red channel and see how much it takes
tic;
Rout=hz_resize(R,Rout,Nr,Nc);
toc;
%% Do the same operation for the green channel
tic;Gout=hz_resize(G,Gout,Nr,Nc);toc;
%% and the blue channel
tic;Bout=hz_resize(B,Bout,Nr,Nc);toc;
%% Put them all in Iout, reconstruct the 3-dimensional color matrix
Iout(:,:,1)=uint8(Rout);
Iout(:,:,2)=uint8(Gout);
Iout(:,:,3)=uint8(Bout);
figure;imagesc(Iout)
%% You see how this myth that fixed-point simulation in MATLAB is slow and
% can never reach C code speed is dispelled. As of R2007a the fixed-point
% toolbox contains this automatic Matlab to MEX generators. It guarantees
% execution speed at C code speeds so no need for and no excuse to leave MATLAB
% and have another C code version of your design just for achieving fast
% simulation
%% How about if you want to have access to fixed-point C source code for
% downstream deployment onto fixed-poit DSP or HDL (FPGA/ASIC?
% For automatic C code generation you need RTW (Real-Time Workshop)
% which needs Simulink 
% Good news your MATLAB code developed so far is seamlessly integrated into
% Simulink environment with a special Simulink block called 
% Embedded MATLAB function block
% block. How to envoke it? shortcut:
emlnew
%% Now put the fixed-point M-code in that block, hook the input and output ports 
% to your choice of source and sink blocks, 
% I did all that for you all in the Simulink model file called
% hz_C_code.mdl, then simulate, 
% it is as fast as it was with acceleration in MATLAB. 
% Now touch Incremental Build button
% or Ctrl-B (shortcut) and observe the fixed-point C sourde code for your application  

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久国产乱子精品免费女| 久久综合久久鬼色中文字| 成人免费视频免费观看| 国产呦精品一区二区三区网站| 日本午夜一区二区| 麻豆传媒一区二区三区| 麻豆精品在线播放| 91久久线看在观草草青青| 中文字幕国产一区| 日本一区免费视频| 中文字幕亚洲区| 亚洲国产精品一区二区尤物区| 亚洲18女电影在线观看| 麻豆成人在线观看| 欧美三级韩国三级日本三斤| 日韩欧美国产系列| 欧美激情在线一区二区三区| 日本不卡不码高清免费观看| 精品一区二区三区欧美| 不卡av免费在线观看| 91国偷自产一区二区使用方法| 久久久www免费人成精品| 中文字幕高清不卡| 国产伦精品一区二区三区在线观看| 欧美日韩专区在线| 一二三区精品福利视频| 久久国产三级精品| 日韩一区二区三区视频在线观看| 久久亚洲一区二区三区明星换脸| 日韩精品免费视频人成| 国产ts人妖一区二区| 欧美日韩免费不卡视频一区二区三区 | 久久综合色播五月| 免费在线看一区| 日韩一级黄色大片| 蜜桃一区二区三区在线| 欧美一激情一区二区三区| 日日夜夜免费精品| 欧美一卡二卡三卡| 中文字幕亚洲欧美在线不卡| 成人av网站大全| 免费看欧美女人艹b| 欧美成人vr18sexvr| 国产精品第一页第二页第三页| 亚洲超丰满肉感bbw| 欧美人狂配大交3d怪物一区| 日本中文字幕一区二区有限公司| 日韩亚洲欧美高清| 国产一区二区在线视频| 国产色婷婷亚洲99精品小说| 肉色丝袜一区二区| 2017欧美狠狠色| 福利一区在线观看| 亚洲精品乱码久久久久| 国产成人在线网站| 久久综合色综合88| 成人激情综合网站| 一区二区三区日韩精品| 日韩亚洲欧美中文三级| 东方aⅴ免费观看久久av| 亚洲男人天堂av| 99re热这里只有精品视频| 久久久久国产一区二区三区四区| 懂色一区二区三区免费观看| 亚洲欧美日韩国产中文在线| 在线不卡一区二区| 亚洲成人免费影院| 精品黑人一区二区三区久久| 麻豆91在线看| 国产精品国产三级国产普通话三级 | 日韩视频国产视频| 成人开心网精品视频| 亚洲线精品一区二区三区八戒| 欧美一级片免费看| av男人天堂一区| ㊣最新国产の精品bt伙计久久| 欧美日韩午夜在线| 成人av电影在线网| 理论电影国产精品| 亚洲精选免费视频| 久久影音资源网| 欧美日韩一区二区三区四区| 国产成人在线观看免费网站| 五月婷婷综合在线| 这里只有精品视频在线观看| 日韩在线a电影| 亚洲欧洲另类国产综合| 555www色欧美视频| 一本色道a无线码一区v| 亚洲国产精品麻豆| 国产精品高潮呻吟久久| 精品欧美一区二区久久| 欧美日韩二区三区| 91蝌蚪porny| 午夜精彩视频在线观看不卡| 国产欧美日韩视频在线观看| 欧美一级理论片| 欧美性生交片4| 麻豆精品在线观看| 亚洲.国产.中文慕字在线| 国产精品久久久久天堂| 久久精品水蜜桃av综合天堂| 日韩欧美三级在线| 欧美日韩亚洲综合| 欧美在线一二三四区| 蜜桃av一区二区三区电影| 亚洲欧美另类小说视频| 久久99精品久久久久婷婷| 欧美高清一级片在线| 国产永久精品大片wwwapp| 亚洲成av人片在线| 亚洲婷婷综合久久一本伊一区| 91视频国产观看| 欧美色图12p| 色综合久久久久久久久| 蜜乳av一区二区| 国产一区二区在线视频| 在线亚洲欧美专区二区| 欧美zozo另类异族| 亚洲精品中文在线影院| 精品在线一区二区| 欧美中文字幕亚洲一区二区va在线| 日韩一级欧美一级| 亚洲男人都懂的| 国产综合久久久久久久久久久久| 日本伊人色综合网| 盗摄精品av一区二区三区| 欧美日韩免费一区二区三区| 国产午夜精品理论片a级大结局| 亚洲国产成人91porn| 国产成人亚洲综合a∨猫咪| 欧美日韩国产首页| 国产精品久久一卡二卡| 青青草国产成人99久久| 91蝌蚪国产九色| 久久精品亚洲乱码伦伦中文 | 中文字幕一区二区三区av| 日本免费在线视频不卡一不卡二| 成人免费黄色大片| 日韩精品一区二区三区三区免费 | 亚洲影视在线播放| 亚洲国产精品人人做人人爽| 日韩欧美综合一区| 亚洲激情自拍偷拍| 粉嫩av一区二区三区| 日韩你懂的在线播放| 亚洲高清在线视频| 92精品国产成人观看免费| 久久久久久久性| 久久福利视频一区二区| 欧美高清性hdvideosex| 一区二区不卡在线播放| 97久久超碰国产精品| 国产女主播在线一区二区| 久久av中文字幕片| 日韩一区二区中文字幕| 日韩和欧美一区二区三区| 91国产成人在线| 亚洲精品视频免费观看| 99热这里都是精品| 国产精品午夜在线| 亚洲成a人片综合在线| 色伊人久久综合中文字幕| 国产精品第13页| 成人aaaa免费全部观看| 国产精品国产三级国产普通话99 | 在线欧美日韩精品| 亚洲三级电影网站| 91香蕉视频mp4| 亚洲欧美自拍偷拍色图| 97久久精品人人做人人爽 | 色噜噜狠狠成人中文综合| 综合激情成人伊人| 91视频在线看| 一区二区在线观看视频在线观看| 日本韩国一区二区| 亚洲成av人片在线观看无码| 欧美一区二区三区思思人| 蜜桃久久av一区| 久久久精品国产免大香伊| 国产乱子伦视频一区二区三区| 欧美视频一区二区| 天天av天天翘天天综合网色鬼国产| 欧美日韩美女一区二区| 免费高清在线视频一区·| 欧美成人bangbros| 国产成人综合自拍| 国产精品久久久久久久裸模| 97久久超碰精品国产| 亚洲高清不卡在线观看| 91精品国模一区二区三区| 激情深爱一区二区| 国产精品国产三级国产aⅴ中文| 色吧成人激情小说| 日韩av一区二区在线影视| 久久综合九色综合欧美就去吻 | 成人av网站免费观看| 91小视频免费观看| 香蕉久久一区二区不卡无毒影院 | 不卡av电影在线播放|