function varargout = SRGUICOLOR(varargin)
%This mfile is written by Sina Farsiu(JULY 7 2003) farsiu@ee.ucsc.edu
%Edited MAY 10 2004 by Sina Farsiu
% SRGUICOLOR M-file for SRGUICOLOR.fig
% SRGUICOLOR, by itself, creates a new SRGUICOLOR or raises the existing
% singleton*.
%
% H = SRGUICOLOR returns the handle to a new SRGUICOLOR or the handle to
% the existing singleton*.
%
% SRGUICOLOR('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in SRGUICOLOR.M with the given input arguments.
%
% SRGUICOLOR('Property','Value',...) creates a new SRGUICOLOR or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before SRGUICOLOR_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to SRGUICOLOR_OpeningFcn via varargin.
%
% *See GUI Options on GUIDE's Tools menu. Choose "GUI allows only one
% instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
% Edit the above text to modify the response to help SRGUICOLOR
% Last Modified by GUIDE v2.5 10-May-2004 10:08:48
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @SRGUICOLOR_OpeningFcn, ...
'gui_OutputFcn', @SRGUICOLOR_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback', []);
if nargin & isstr(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
else
gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before SRGUICOLOR is made visible.
function SRGUICOLOR_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, see OutputFcn.
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to SRGUICOLOR (see VARARGIN)
% Choose default command line output for SRGUICOLOR
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes SRGUICOLOR wait for user response (see UIRESUME)
% uiwait(handles.mainfigure);
%%%
%show and load the default low-res frame
load hpnew2
[yu data handlesfigur1data]=Check_And_Load2(hpnew2,handles);
handles.figur1data=handlesfigur1data;
global fig1pic
fig1pic=handlesfigur1data;
filename='hpnew2';
if yu
handles.filename = filename;
guidata(hObject,handles)
end
off =[handles.fig1mse];
toff =[handles.Open];
handles = guidata(toff);
set(off,'String',handles.filename);
set(handles.savevideoout,'Enable','off');
set(handles.savehravi,'Enable','off');
%%%
global curdata
curdata=data;
handles.alreadymotion=0;
handles.HRprev=0;
guidata(hObject,handles)
%%%
% a=handles.Color;
% set(a,'Enable','off');
axes(handles.figur1)
imagesc(data(:,:,1))
axis image
colormap(gray)
%title('First LowRes Frame')
mdsp=imread('mdsp.gif');
axes(handles.figur2)
imagesc(mdsp)
axis off
mdsp=imread('mdsp.gif');
axes(handles.figur3)
imagesc(mdsp)
axis off
%axis image
%set(handles.figur2,'Visible','off');
handles.figur1data=data(:,:,1);
global fig1pic
fig1pic=data(:,:,1);
handles.figur2data=mdsp;
handles.figur3data=mdsp;
global fig1pic
fig1pic=data(:,:,1);
guidata(hObject,handles)
% --- Outputs from this function are returned to the command line.
function varargout = SRGUICOLOR_OutputFcn(hObject, eventdata, handles)
% varargout cell array for returning output args (see VARARGOUT);
% hObject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
function mutual_exclude(off)
set(off,'Value',0)
% --- Executes on button press in radiobutton1.
function radiobutton1_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of radiobutton1
off =[handles.radiobutton2];
mutual_exclude(off)
off =[handles.progmotion];
mutual_exclude(off)
% Continue with callback
% --- Executes on button press in radiobutton2.
function radiobutton2_Callback(hObject, eventdata, handles)
% hObject handle to radiobutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hint: get(hObject,'Value') returns toggle state of radiobutton2
global V
off =[handles.radiobutton1];
mutual_exclude(off)
off =[handles.progmotion];
mutual_exclude(off)
% Continue with callback
motionvector=modaldlg3;
motionvectorsize=size((motionvector));
if motionvectorsize(1)<2
off =[handles.radiobutton2];
set(off,'Value',0)
off =[handles.radiobutton1];
set(off,'Value',1)
off =[handles.progmotion];
set(off,'Value',0)
end
handles.motionvector=motionvector;
V=motionvector;
guidata(hObject,handles)
% --------------------------------------------------------------------
function Open_Callback(hObject, eventdata, handles)
% hObject handle to Open (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Use UIGETFILE to allow for the selection of a custom address book.
%clear Zvideo
[filename, pathname] = uigetfile( ...
{'*.mat', 'All MAT-Files (*.mat)'; ...
'*.avi','All AVI (*.avi)'}, ...
'Select a mat or avi data file');
% If "Cancel" is selected then return
if isequal([filename,pathname],[0,0])
return
else
File = fullfile(pathname,filename);
[yu data handlesfigur1data]=Check_And_Load(File,handles);
handles.figur1data=handlesfigur1data;
global fig1pic
fig1pic=handlesfigur1data;
if yu
handles.filename = filename;
guidata(hObject,handles)
end
end
off =[handles.fig1mse];
toff =[handles.Open];
handles = guidata(toff);
set(off,'String',handles.filename);
if max(data(:))>255 | min(data(:))<0
disp(['The program will change the Gray level to fit in 0-255 range!']);
maxgray=255;
mingray=0;
minn=zeros((size(data)));
data=max(minn,data);
data=data/max(data(:));
data=data*maxgray;
end
handles.alreadymotion=0;
set(handles.radiobutton2,'Value',0);
set(handles.radiobutton1,'Value',1);
%%%
global curdata
curdata=double(data);
guidata(hObject,handles)
%%%
mdsp=imread('mdsp.gif');
axes(handles.figur2)
imagesc(mdsp)
axis off
mdsp=imread('mdsp.gif');
axes(handles.figur3)
imagesc(mdsp)
axis off
datasize=size(data);
sizedatasize=size(datasize);
handles.figur2data=mdsp;
handles.figur3data=mdsp;
guidata(hObject,handles)
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% --- Executes on button press in SPbutton.
function SPbutton_Callback(hObject, eventdata, handles)
% hObject handle to SPbutton (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
global Zvideo
clear Zvideo
%whos
global V
%%%%%%%%%%%%%%%%%%%%
%
res = floor(str2double(get(handles.resfac,'String')));
set(handles.resfac,'String',num2str(res))
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
%
motiononoff=get(handles.radiobutton2,'Value');
progmotionn=get(handles.progmoti
没有合适的资源?快使用搜索试试~ 我知道了~
超分辨率 成像 matlab 代码

共135个文件
p:72个
m:36个
fig:24个


温馨提示
超分辨率成像 由多幅低分辨率图像生成高分辨率成像 非常全面好用
资源推荐
资源详情
资源评论















收起资源包目录





































































































共 135 条
- 1
- 2

kerqin
- 粉丝: 2
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 第一章--计算机及信息技术概述.doc
- 计算机组成原理复习要点(复习必过)(1).doc
- 数据库运行管理手册.docx
- 20245G通信行业影响总结报告(1).pptx
- 关于大数据背景下计算机软件工程技术的探讨(1).docx
- 电子商务环境下客户忠诚度的培养(1)(1).doc
- 会计实务:如何将Excel表格内容直接转换成图片(1).doc
- 基于LabVIEW与单片机控制的LED汉字显示屏(1).doc
- 基于单片机的简易低频信号发射源的设计毕业设计(1)(1).doc
- gitlab-issue详细操作流程(1).doc
- 移动通信公司安全生产工作总结怎么做ppt(1).pptx
- 探讨电气工程及其自动化高压电中存在的问题及对策(1).docx
- 通信基站节能减排解决方案(1).doc
- 毕业论文-于基c语言的rs73编码器设计(1).doc
- 新时代网络环境下农村教师信息化应用能力提升初探(1).docx
- 移动通信的基本技术(1)(1).ppt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

- 1
- 2
前往页