Code covered by the BSD License  

Highlights from
Grab 2D points

image thumbnail

Grab 2D points

by

 

17 Aug 2007 (Updated )

This code is used to digitize 2d figures that you find in publications, journals, or simply scanned

Nassim_Grabit0(varargin)
function varargout = Nassim_Grabit0(varargin)
% NASSIM_GRABIT0 M-file for Nassim_Grabit0.fig
%      NASSIM_GRABIT0, by itself, creates a new NASSIM_GRABIT0 or raises the existing
%      singleton*.
%
%      H = NASSIM_GRABIT0 returns the handle to a new NASSIM_GRABIT0 or the handle to
%      the existing singleton*.
%
%      NASSIM_GRABIT0('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in NASSIM_GRABIT0.M with the given input arguments.
%
%      NASSIM_GRABIT0('Property','Value',...) creates a new NASSIM_GRABIT0 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before Nassim_Grabit0_OpeningFunction gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to Nassim_Grabit0_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

% Copyright 2002-2003 The MathWorks, Inc.

% Edit the above text to modify the response to help Nassim_Grabit0

% Last Modified by GUIDE v2.5 11-Jun-2007 10:44:49

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @Nassim_Grabit0_OpeningFcn, ...
                   'gui_OutputFcn',  @Nassim_Grabit0_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 Nassim_Grabit0 is made visible.
function Nassim_Grabit0_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 Nassim_Grabit0 (see VARARGIN)

% Choose default command line output for Nassim_Grabit0
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);
% UIWAIT makes Nassim_Grabit0 wait for user response (see UIRESUME)
% uiwait(handles.figure1);
h = gca
set(gca,'Visible','OFF')
% set(gcf,'Visible','OFF')

% --- Outputs from this function are returned to the command line.
function varargout = Nassim_Grabit0_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;


% --- Executes on button press in Load_figure.
function Load_figure_Callback(hObject, eventdata, handles)
% hObject    handle to Load_figure (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
% set(handles.my_plot,'HandleVisibility','OFF');
% open('Nassim_Grabit.fig')
close('Nassim_Grabit0');

file = uigetfile('*.jpg');
if ~isequal(file, 0)
    a=imread(file);
end
set(gca,'Visible','ON');
h = gca;
imshow(a);
hold on
% save h;
save a;
% open('xmaximum.fig')
xminimum();

% yminimum()
% ymaximum()
% close
%  [x,y]=ginput; 


% --------------------------------------------------------------------
function Help_Callback(hObject, eventdata, handles)
% hObject    handle to Help (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Help_About_Callback(hObject, eventdata, handles)
% hObject    handle to Help_About (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
open('Help_about_Nassim_Grabit.fig')





Contact us