国产aaaa级全身裸体精油片_337p人体粉嫩久久久红粉影视_一区中文字幕在线观看_国产亚洲精品一区二区_欧美裸体男粗大1609_午夜亚洲激情电影av_黄色小说入口_日本精品久久久久中文字幕_少妇思春三a级_亚洲视频自拍偷拍

首頁 > 行業(yè)資訊 > 【光學(xué)】基于matlab模擬光柵條紋投影生成

【光學(xué)】基于matlab模擬光柵條紋投影生成

時(shí)間:2022-09-22 來源: 瀏覽:

【光學(xué)】基于matlab模擬光柵條紋投影生成

天天Matlab 天天Matlab
天天Matlab

TT_Matlab

博主簡(jiǎn)介:擅長(zhǎng)智能優(yōu)化算法、神經(jīng)網(wǎng)絡(luò)預(yù)測(cè)、信號(hào)處理、元胞自動(dòng)機(jī)、圖像處理、路徑規(guī)劃、無人機(jī)等多種領(lǐng)域的Matlab仿真,完整matlab代碼或者程序定制加qq1575304183。

收錄于合集 #物理應(yīng)用matlab源碼 85個(gè)

1 內(nèi)容介紹

基于matlab模擬光柵條紋投影生成

2 部分代碼

function varargout = Main(varargin)

% MAIN MATLAB code for Main.fig

%      MAIN, by itself, creates a new MAIN or raises the existing

%      singleton*.

%

%      H = MAIN returns the handle to a new MAIN or the handle to

%      the existing singleton*.

%

%      MAIN(’CALLBACK’,hObject,eventData,handles,...) calls the local

%      function named CALLBACK in MAIN.M with the given input arguments.

%

%      MAIN(’Property’,’Value’,...) creates a new MAIN or raises the

%      existing singleton*.  Starting from the left, property value pairs are

%      applied to the GUI before Main_OpeningFcn gets called.  An

%      unrecognized property name or invalid value makes property application

%      stop.  All inputs are passed to Main_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 Main

% Last Modified by GUIDE v2.5 09-Sep-2022 22:18:16

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct(’gui_Name’,       mfilename, ...

                   ’gui_Singleton’,  gui_Singleton, ...

                   ’gui_OpeningFcn’, @Main_OpeningFcn, ...

                   ’gui_OutputFcn’,  @Main_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 Main is made visible.

function Main_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 Main (see VARARGIN)

% Choose default command line output for Main

handles.output = hObject;

% Update handles structure

guidata(hObject, handles);

% UIWAIT makes Main wait for user response (see UIRESUME)

% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = Main_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 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

guidata(hObject,handles);

val=get(handles.radiobutton1,’Value’);

if val

    set(handles.edit4,’Enable’,’on’);

    set(handles.popupmenu3,’Enable’,’on’);

end

% --- 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

guidata(hObject,handles);

val=get(handles.radiobutton2,’Value’);

if val

    set(handles.edit4,’Enable’,’off’);

    set(handles.popupmenu3,’Enable’,’off’);

end

% --- Executes on selection change in popupmenu1.

function popupmenu1_Callback(hObject, eventdata, handles)

% hObject    handle to popupmenu1 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

% Hints: contents = cellstr(get(hObject,’String’)) returns popupmenu1 contents as cell array

%        contents{get(hObject,’Value’)} returns selected item from popupmenu1

guidata(hObject,handles);

val=get(hObject,’Value’);

switch val

    case 1

        set(handles.edit3,’Enable’,’off’);

    case 2

        set(handles.edit3,’Enable’,’off’);

    case 3

        set(handles.edit3,’Enable’,’on’);

end

        

        

        

% --- Executes during object creation, after setting all properties.

function popupmenu1_CreateFcn(hObject, eventdata, handles)

% hObject    handle to popupmenu1 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    empty - handles not created until after all CreateFcns called

% Hint: popupmenu 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

function edit1_Callback(hObject, eventdata, handles)

% hObject    handle to edit1 (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 edit1 as text

%        str2double(get(hObject,’String’)) returns contents of edit1 as a double

str=get(hObject,’String’);

set(handles.edit6,’String’,str);

% --- Executes during object creation, after setting all properties.

function edit1_CreateFcn(hObject, eventdata, handles)

% hObject    handle to edit1 (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

function edit2_Callback(hObject, eventdata, handles)

% hObject    handle to edit2 (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 edit2 as text

%        str2double(get(hObject,’String’)) returns contents of edit2 as a 

% --- Executes on button press in pushbutton2.

function pushbutton2_Callback(hObject, eventdata, handles)

% hObject    handle to pushbutton2 (see GCBO)

% eventdata  reserved - to be defined in a future version of MATLAB

% handles    structure with handles and user data (see GUIDATA)

A = exist(’D:Matlab.R2014bworkcode iaowen123.m’,’file’);

if A>0

    disp(’FTP源碼生成失敗!已存在同名文件’);

    open tiaowen123.m

else

    copyfile(’D:Matlab.R2014bworkprofilometry3d iaowen123.m’,...

        ’D:Matlab.R2014bworkcode iaowen123.m’);

    open tiaowen123.m

end

function edit6_Callback(hObject, eventdata, handles)

% hObject    handle to edit6 (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 edit6 as text

%        str2double(get(hObject,’String’)) returns contents of edit6 as a double

% --- Executes during object creation, after setting all properties.

function edit6_CreateFcn(hObject, eventdata, handles)

% hObject    handle to edit6 (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

3 運(yùn)行結(jié)果

4 參考文獻(xiàn)

[1]戴美玲, 楊??? 杜曉磊,等. 基于單幅彩色正弦光柵投影的三維形貌測(cè)量[J]. 光學(xué)學(xué)報(bào), 2011, 31(7):5.

[2]樊強(qiáng), 姜濤, 習(xí)俊通,等. 光學(xué)三維測(cè)量中結(jié)構(gòu)光柵投影系統(tǒng)的開發(fā)[J]. 光電工程, 2005, 32(10):4.

博主簡(jiǎn)介:擅長(zhǎng) 智能優(yōu)化算法 神經(jīng)網(wǎng)絡(luò)預(yù)測(cè) 、 信號(hào)處理 元胞自動(dòng)機(jī) 、 圖像處理 路徑規(guī)劃 、 無人機(jī) 、 雷達(dá)通信 、 無線傳感器 等多種領(lǐng)域的Matlab仿真,相關(guān)matlab代碼問題可私信交流。

部分理論引用網(wǎng)絡(luò)文獻(xiàn),若有侵權(quán)聯(lián)系博主刪除。

版權(quán):如無特殊注明,文章轉(zhuǎn)載自網(wǎng)絡(luò),侵權(quán)請(qǐng)聯(lián)系cnmhg168#163.com刪除!文件均為網(wǎng)友上傳,僅供研究和學(xué)習(xí)使用,務(wù)必24小時(shí)內(nèi)刪除。
相關(guān)推薦