select.m
来自「Mean Shift 这个概念最早是由Fukunaga等人[1]于1975年在一」· M 代码 · 共 24 行
M
24 行
% Adam Kukucka% Zach Clay% Marcelo Molina % CSE 486 Project 3function [ cmin, cmax, rmin, rmax ] = select( I )%UNTITLED1 Summary of this function goes here% Detailed explanation goes here% for array... x is cols, y is rowsimage(I);k = waitforbuttonpress;point1 = get(gca,'CurrentPoint'); %mouse pressedrectregion = rbbox; point2 = get(gca,'CurrentPoint');point1 = point1(1,1:2); % extract col/row min and maxspoint2 = point2(1,1:2);lowerleft = min(point1, point2);upperright = max(point1, point2);cmin = round(lowerleft(1));cmax = round(upperright(1));rmin = round(lowerleft(2));rmax = round(upperright(2));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?