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个
3星 · 超过75%的资源 需积分: 49 69 下载量 74 浏览量
2013-01-07
12:40:06
上传
评论 11
收藏 777KB RAR 举报
温馨提示
超分辨率成像 由多幅低分辨率图像生成高分辨率成像 非常全面好用
资源推荐
资源详情
资源评论
收起资源包目录
超分辨率 成像 matlab 代码 (135个子文件)
SRGUICOLOR.fig 89KB
modaldlg4.fig 79KB
modaldlg3.fig 78KB
kalmancolorvideoprop.fig 78KB
kalmanBWvideoprop.fig 77KB
kalmanbwvideo.fig 60KB
demossingleprop.fig 55KB
iterSAprop.fig 53KB
demosSAprop.fig 53KB
adaptvideo.fig 47KB
zometprop.fig 44KB
icipprop.fig 41KB
norm2sdprop.fig 38KB
colorvideosimulatorprop.fig 37KB
videosimulatorprop.fig 34KB
deconvcolor.fig 26KB
deconv.fig 26KB
Demossimulatorprop.fig 22KB
desiredROImovie.fig 22KB
desiredROI.fig 22KB
bilatprop.fig 16KB
originalyn.fig 8KB
aboutfig.fig 8KB
MDSPNEW.fig 5KB
mdsp.gif 2KB
mdspj.jpg 13KB
SRGUICOLOR.m 101KB
kalmancolorvideoprop.m 40KB
kalmanBWvideoprop.m 40KB
kalmanbwvideo.m 34KB
demossingleprop.m 31KB
demosSAprop.m 29KB
adaptvideo.m 28KB
iterSAprop.m 26KB
zometprop.m 24KB
norm2sdprop.m 23KB
icipprop.m 22KB
colorvideosimulatorprop.m 17KB
videosimulatorprop.m 16KB
fspecialsina.m 13KB
deconvcolor.m 13KB
deconvcolor2.m 13KB
deconv.m 13KB
Demossimulatorprop.m 9KB
modaldlg4.m 9KB
modaldlg3.m 9KB
kalmanoneframebayer.m 8KB
desiredROImovie.m 7KB
desiredROI.m 7KB
kalmanoneframe.m 7KB
bilatprop.m 7KB
kalmanoneframeBWEXE.m 6KB
colorvideosimulatorprfunc.m 6KB
originalyn.m 5KB
videosimulatorprfunc.m 4KB
aboutfig.m 3KB
MDSPNEW.m 3KB
progmotionestimation.m 999B
motionestimation.m 646B
EstGradient.m 494B
conv2.m 109B
driverSRGUICOLOR.m 39B
hpnew2.mat 55KB
driveriterbilatexe.p 42KB
driveritermedianSAexe.p 33KB
driveriterSAexe.p 31KB
kalmanoneframebayerEXE.p 25KB
kalmanoneframeEXE.p 24KB
demos_laroche4.p 22KB
demos_laroche2.p 22KB
demos_laroche3.p 22KB
demos_laroche.p 22KB
drivernorm1exe.p 21KB
driverMedian_Gradientexe.p 21KB
driverBilatframeexe.p 20KB
demos_sinakeren.p 19KB
driverMedian_Gradientl1exe.p 19KB
drivernorm2_1exe.p 19KB
drivernorm2sdexe.p 19KB
kalmanoneframeBWEXE2.p 14KB
randomlrdemosmaker.p 11KB
demos_singlechannel_sinakern.p 10KB
phaseTransEst1D.p 9KB
driverMEDIANSAexe.p 9KB
phaseTransEst2D.p 8KB
driverSAexe.p 8KB
gradTransEst1D.p 8KB
fsinamotionvid.p 8KB
RecursReg2.p 8KB
gradAffEst1D.p 8KB
demos_salr.p 8KB
driverSAcolorexe.p 7KB
SAD.p 7KB
gradAffEst2D.p 7KB
SignalLinShift.p 6KB
gradTransEst2D.p 5KB
upsamplerdemos.p 5KB
RecursMatch.p 5KB
demos_motionmaker.p 4KB
circularShift3.p 4KB
共 135 条
- 1
- 2
kerqin
- 粉丝: 2
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页