Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 26 lines (19 sloc) 0.34 kb
eeb789b @zk00006 first commit
zk00006 authored
1 clf; clc; clear all; warning off;
2
3 i0 = imread('tire.tif');
4 bb = [80.1 80 200 200]';
5
6 tic
7
8 profile on
9 for i = 1:1000
10 p0 = i0(bb(2):bb(4),bb(1):bb(3));
11 end
12 toc
13 tic
14 for i = 1:1000
15 p1 = img_patch(i0,bb);
16 end
17 toc
18 profile off
19 profile viewer;
20
21 subplot(131); imshow(p0-p1,[]);
22 subplot(132); imshow(p0,[]);
23 subplot(133); imshow(p1,[]);
24
25
Something went wrong with that request. Please try again.