• janlochel
    了解作者
  • matlab
    开发工具
  • 23KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 199
    下载次数
  • 2009-06-11 22:31
    上传日期
System CBIR in Matlab
CBIR_System_in_MATLAB.rar
  • CBIR System
  • db
  • domcolordist.m
    933B
  • builddatabase.m
    504B
  • colordescriptor.m
    629B
  • SimpleGUI.m
    4.5KB
  • rgb2quanthmmd.m
    426B
  • ehddist.m
    522B
  • hmmdquanttable128.m
    728B
  • findsimilar.m
    1.1KB
  • gui.m
    7.6KB
  • calcfeatures.m
    449B
  • hmmdquanttable32.m
    720B
  • hw4.m
    1.1KB
  • ehd.m
    4.9KB
  • SimpleGUI.fig
    2.4KB
  • rgb2hmmd.m
    914B
  • gui.fig
    9.1KB
  • hw4hmmdsim.m
    2.3KB
  • domcolor.m
    967B
内容介绍
function varargout = gui(varargin) % GUI M-file for gui.fig % GUI, by itself, creates a new GUI or raises the existing % singleton*. % % H = GUI returns the handle to a new GUI or the handle to % the existing singleton*. % % GUI('CALLBACK',hObject,eventData,handles,...) calls the local % function named CALLBACK in GUI.M with the given input arguments. % % GUI('Property','Value',...) creates a new GUI or raises % the existing singleton*. Starting from the left, property value pairs are % applied to the GUI before gui_OpeningFcn gets called. An % unrecognized property name or invalid value makes property application % stop. All inputs are passed to gui_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 gui % Last Modified by GUIDE v2.5 12-Nov-2008 15:41:32 % Begin initialization code - DO NOT EDIT gui_Singleton = 1; gui_State = struct('gui_Name', mfilename, ... 'gui_Singleton', gui_Singleton, ... 'gui_OpeningFcn', @gui_OpeningFcn, ... 'gui_OutputFcn', @gui_OutputFcn, ... 'gui_LayoutFcn', [] , ... 'gui_Callback', []); if nargin && ischar(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 gui is made visible. function gui_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 gui (see VARARGIN) % Choose default command line output for gui handles.output = hObject; % Update handles structure guidata(hObject, handles); initialize_gui(hObject, handles, false); % UIWAIT makes gui wait for user response (see UIRESUME) % uiwait(handles.figure1); % --- Outputs from this function are returned to the command line. function varargout = gui_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 initialize_gui(fig_handle, handles, isreset) % If the metricdata field is present and the reset flag is false, it means % we are we are just re-initializing a GUI by calling it from the cmd line % while it is up. So, bail out as we dont want to reset the data. if isfield(handles, 'metricdata') && ~isreset return; end % handles.metricdata.txtImagePath = 0; % handles.metricdata.volume = 0; % % set(handles.txtImagePath, 'String', handles.metricdata.txtImagePath); % set(handles.volume, 'String', handles.metricdata.volume); % set(handles.mass, 'String', 0); % % set(handles.unitgroup, 'SelectedObject', handles.english); % % set(handles.text4, 'String', 'lb/cu.in'); % set(handles.text5, 'String', 'cu.in'); % set(handles.text6, 'String', 'lb'); % Update handles structure guidata(handles.figure1, handles); % --- Executes on button press in btnBrowse. function btnBrowse_Callback(hObject, eventdata, handles) % hObject handle to btnBrowse (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) [name path] = uigetfile({'*.jpg;*.png;*.bmp;*.tiff;*.gif', 'All Image Files'; '*.*', 'All Files (*.*)'}); set(handles.txtImagePath, 'string', [path,name]); axes(handles.axTarget); cla; f = imread([path,name]); hold on; imshow(f); hold off; function txtImagePath_Callback(hObject, eventdata, handles) % hObject handle to txtImagePath (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of txtImagePath as text % str2double(get(hObject,'String')) returns contents of txtImagePath as a double % --- Executes during object creation, after setting all properties. function txtImagePath_CreateFcn(hObject, eventdata, handles) % hObject handle to txtImagePath (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end % --- Executes on slider movement. function slNumResults_Callback(hObject, eventdata, handles) % hObject handle to slNumResults (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'Value') returns position of slider % get(hObject,'Min') and get(hObject,'Max') to determine range of slider val = get(hObject,'Value'); set(handles.txtNumResults, 'String', uint8(val)); % --- Executes during object creation, after setting all properties. function slNumResults_CreateFcn(hObject, eventdata, handles) % hObject handle to slNumResults (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: slider controls usually have a light gray background. if isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor',[.9 .9 .9]); end function txtNumResults_Callback(hObject, eventdata, handles) % hObject handle to txtNumResults (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) % Hints: get(hObject,'String') returns contents of txtNumResults as text % str2double(get(hObject,'String')) returns contents of txtNumResults as a double s = str2num(get(hObject, 'String')); set(handles.slNumResults, 'Value', s); % --- Executes during object creation, after setting all properties. function txtNumResults_CreateFcn(hObject, eventdata, handles) % hObject handle to txtNumResults (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles empty - handles not created until after all CreateFcns called % Hint: edit controls usually have a white background on Windows. % See ISPC and COMPUTER. if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor')) set(hObject,'BackgroundColor','white'); end % --- Executes on button press in btnSearch. function btnSearch_Callback(hObject, eventdata, handles) % hObject handle to btnSearch (see GCBO) % eventdata reserved - to be defined in a future version of MATLAB % handles structure with handles and user data (see GUIDATA) path = get(handles.txtImagePath, 'string'); % displaying in the results axes does not work %axes(handles.axResults); cla; figure; hold on; num = str2num(get(handles.txtNumResults, 'String')); f = imread('images/248.jpg'); for i = 1:num subplot(num/5,5,i); imshow(f); end hold off;
评论
    相关推荐
    • CBIR.zip
      Code for Content based image retrieval
    • Mathworks-cbir.zip
      CBIR Content Based Image retrieval
    • 39709592CBIR-matlab.rar
      matlab编写的图像检索代码,依据特征,颜色,边界分割等原理
    • CBIR-master.zip
      对图库里的照片进行检索等,选用的算法很多
    • 图像平铺:可用于 CBIR-matlab开发
      根据用户输入动态生成图像块,并可能成为基于 CBIR 或本地阈值的系统的一部分。
    • cbir 基于内容的图像检索
      1. 基于Matlab,支持GUI和数据库 2. 使用著名图像测试集:WANG datasets, 1000 test image 3. 支持多种特征向量: color histogram Color Correlogram Gabor filter Wavelet 4. 支持SVM分类器
    • CBIR船舶检索系统.zip
      CBIR船舶检索系统,基于MATLAB内容的图像检索,即CBIR系统主要分为两部分,一个是特征提取,另一个是查询。当用户通过查询接口,放入想要检索的图片时,查询接口通过检索引擎,对信息进行索引、过滤,在将所得数据...
    • CBIR-matlab
      based-color CBIR using Matlav
    • cbir-matlab
      基于内容的图像检索,matlab代码,下载后程序可以运行,效果不错
    • matlab CBIR(基于内容的图像检索)技术
      根据给定的图像库,选择一张图像,可在本图像库中找到与之纹理信息、色彩信息相近的图像!