plateform stringclasses 1
value | repo_name stringlengths 13 113 | name stringlengths 3 74 | ext stringclasses 1
value | path stringlengths 12 229 | size int64 23 843k | source_encoding stringclasses 9
values | md5 stringlengths 32 32 | text stringlengths 23 843k |
|---|---|---|---|---|---|---|---|---|
github | DIDSR/eeDAP-master | stage_move.m | .m | eeDAP-master/src/stage_move.m | 1,515 | utf_8 | 24c3dfbc218e2c88feb5af41a9508eb6 | % ##########################################################################
%% ###################### MOVE STAGE SEQUENCE ###############################
% ##########################################################################
function stage=stage_move(stage, target_pos, h_stage)
%---------------------------... |
github | DIDSR/eeDAP-master | billboard.m | .m | eeDAP-master/src/billboard.m | 1,539 | utf_8 | e1033611e33f09f041fe7a685ec6772b | %%-------- billboard --------
function billboard(handles, desc)
try
% This function creates an image with text to be displayed to the user
set(handles.GUI, 'Units', 'pixels');
pause(0.5);
set(handles.ImageAxes,...
'Units', 'normalized',...
'Position', [0, 0.2, 1.0, 0.8],...
... |
github | DIDSR/eeDAP-master | stage_close.m | .m | eeDAP-master/src/stage_close.m | 627 | utf_8 | 17bec92b6137d4d7789aa10f96b950cb | % ##########################################################################
%% ######################## CLOSE SERIAL PORT ###############################
% ##########################################################################
function status=stage_close(S)
%--------------------------------------------... |
github | DIDSR/eeDAP-master | Administrator_Input_Screen.m | .m | eeDAP-master/src/Administrator_Input_Screen.m | 26,920 | utf_8 | 27a64167a1c07d517f81c0bebcfce46c | % Author: BSc Adam Ivansky
% Supervisors: Brandon D. Gallas PhD, Wei-Chung Cheng PhD
% Date: 24/08/2012
%
%--------------------------------------------------------------------------
%% ############# ADMINISTRATOR INPUT SCREEN ########################
function varargout = Administrator_Input_Screen(varargin)
try
... |
github | DIDSR/eeDAP-master | stage_set_origin.m | .m | eeDAP-master/src/stage_set_origin.m | 805 | utf_8 | 9484a59090ec8a5c4b0b7a935816a2d4 | % ##########################################################################
%% ###################### MOVE STAGE SEQUENCE ###############################
% ##########################################################################
function stage = stage_set_origin(stage,h_stage)
try
stage_label = stage.labe... |
github | DIDSR/eeDAP-master | ExtractROI_BIO.m | .m | eeDAP-master/src/ExtractROI_BIO.m | 8,129 | utf_8 | c263a90923246ddb52fe9856b067dce8 |
% ##########################################################################
%% ########################## EXTRACT ROI ###################################
% ##########################################################################
function success = ExtractROI_BIO(...
wsi_info,... % WSI inf... |
github | DIDSR/eeDAP-master | camera_preview.m | .m | eeDAP-master/src/camera_preview.m | 2,484 | utf_8 | 958a3e1f1bd98f33d03b95b086a6ae7c | function hFig = camera_preview(vid, settings)
try
% Get properties of the camera image
nBands = get(vid, 'NumberOfBands');
vidRes = get(vid, 'VideoResolution');
imWidth = vidRes(1);
imHeight = vidRes(2);
% Create a figure window. This example turns off the default
% toolbar a... |
github | DIDSR/eeDAP-master | Stage_Allighment.m | .m | eeDAP-master/src/Stage_Allighment.m | 55,531 | utf_8 | 673bd604779f3f3fc22e9ce98917e869 | function varargout = Stage_Allighment(varargin)
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @Stage_Allighment_OpeningFcn, ...
'gui_OutputFcn', @Stage_Allighment_OutputFcn, ...
'gui_LayoutFcn', [] , ...
'gui_Callback... |
github | DIDSR/eeDAP-master | xml_read.m | .m | eeDAP-master/src/xml_read.m | 24,408 | utf_8 | 4931c3d512db336d744ec43f7fa0b368 | function [tree, RootName, DOMnode] = xml_read(xmlfile, Pref)
%XML_READ reads xml files and converts them into Matlab's struct tree.
%
% DESCRIPTION
% tree = xml_read(xmlfile) reads 'xmlfile' into data structure 'tree'
%
% tree = xml_read(xmlfile, Pref) reads 'xmlfile' into data structure 'tree'
% according to yo... |
github | DIDSR/eeDAP-master | stage_get_joy_speed.m | .m | eeDAP-master/src/stage_get_joy_speed.m | 625 | utf_8 | 629e052beaad82ebe8f10fd48af18a25 | % ##########################################################################
%% ###################### MOVE STAGE SEQUENCE ###############################
% ##########################################################################
function stage = stage_get_joy_speed(stage,h_stage)
try
stage_label = stage.l... |
github | DIDSR/eeDAP-master | Load_Input_File.m | .m | eeDAP-master/src/Load_Input_File.m | 19,880 | utf_8 | 16404a78e0d0d572421c68710d32dbc0 | % ##########################################################################
%% ######################### LOAD INPUT FILE ################################
% ##########################################################################
function succeed = Load_Input_File(handles)
try
%----------------------------... |
github | DIDSR/eeDAP-master | GUI.m | .m | eeDAP-master/src/GUI.m | 52,863 | utf_8 | b81745709ae0b5bb19b927630a5a45ef | % eeDAP data collection GUI
% Original Author: BSc Adam Ivansky
% Supervisors: Brandon D. Gallas PhD, Wei-Chung Cheng PhD
% Date: 24/08/2012
%
% Digital & Analog Pathology Simulator
%--------------------------------------------------------------------------
% These is a simple description used for storing the data rela... |
github | DIDSR/eeDAP-master | stage_set_joy_speed.m | .m | eeDAP-master/src/stage_set_joy_speed.m | 664 | utf_8 | 470c68947e77b1dc70820f10a8344d76 | % ##########################################################################
%% ###################### MOVE STAGE SEQUENCE ###############################
% ##########################################################################
function stage = stage_set_joy_speed(stage,target_speed,h_stage)
try
stage_la... |
github | DIDSR/eeDAP-master | stage_open.m | .m | eeDAP-master/src/stage_open.m | 242 | utf_8 | a4b0002042b0e3bd4b80ee71400374ba |
function stage = stage_open(label)
try
if strcmp(label(end-4:end),'Prior')
stage = stage_open_prior(label);
else
stage = stage_open_Ludl(label);
end
catch ME
error_show(ME)
end
end |
github | DIDSR/eeDAP-master | Register_ROI.m | .m | eeDAP-master/src/Register_ROI.m | 8,109 | utf_8 | 64ecdb53307312104215c3cfd46bf253 | % ##########################################################################
%% ############################ REGISTER ROI ################################
% ##########################################################################
function Register_ROI(handles)
try
%-----------------------------------------... |
github | DIDSR/eeDAP-master | stage_move_Ludl.m | .m | eeDAP-master/src/stages/Ludl/stage_move_Ludl.m | 3,706 | utf_8 | bff21c99c6f9dd3b2bdba03b5a220408 | % ##########################################################################
%% ###################### MOVE STAGE SEQUENCE ###############################
% ##########################################################################
function stage=stage_move_Ludl(stage, target_pos, h_stage)
%----------------------... |
github | DIDSR/eeDAP-master | stage_open_Ludl.m | .m | eeDAP-master/src/stages/Ludl/stage_open_Ludl.m | 3,032 | utf_8 | b5b96e93fa669ab7f7c04cf807e53b60 |
function stage = stage_open_Ludl(label)
try
% instrfind returns the instrument object array
% objects = instrfind
% each entry includes the type, status, and name as follows
% Index: Type: Status: Name:
% 1 serial closed Serial-COM4
%
% objects can be ... |
github | DIDSR/eeDAP-master | stage_send_com_Ludl.m | .m | eeDAP-master/src/stages/Ludl/stage_send_com_Ludl.m | 2,237 | utf_8 | 61c55a96d2eaed4a5ad24ca158a74516 | % ##########################################################################
%% ########################## SEND COMMAND ##################################
% ##########################################################################
function ST_answer=stage_send_com_Ludl (S, CommandStr)
%----------------------... |
github | DIDSR/eeDAP-master | stage_set_origin_Ludl.m | .m | eeDAP-master/src/stages/Ludl/stage_set_origin_Ludl.m | 3,453 | utf_8 | 87ad7ca6e638c2b36538cb28aa26fa02 | % ##########################################################################
%% ###################### MOVE STAGE SEQUENCE ###############################
% ##########################################################################
function stage = stage_set_origin_Ludl(stage,h_stage)
try
% If communic... |
github | DIDSR/eeDAP-master | stage_get_pos_prior.m | .m | eeDAP-master/src/stages/Prior/stage_get_pos_prior.m | 1,885 | utf_8 | 558915c55ba5f3fa39c7ea135c4f7200 |
%% ################# GET STAGE POSITION SEQUENCE FOR PRIOR ##########################
function stage=stage_get_pos_prior(stage,h_stage)
% instrfind returns the instrument object array
% objects = instrfind
% each entry includes the type, status, and name as follows
% Index: Type: Status: Name:
% 1 ... |
github | DIDSR/eeDAP-master | stage_move_prior.m | .m | eeDAP-master/src/stages/Prior/stage_move_prior.m | 4,079 | utf_8 | aa900775635216b43aa51c76db08e876 | % ##########################################################################
%% ################# MOVE STAGE SEQUENCE FOR PRIOR ##########################
% ##########################################################################
function stage=stage_move_prior(stage, target_pos, h_stage)
%---------------------... |
github | DIDSR/eeDAP-master | stage_open_prior.m | .m | eeDAP-master/src/stages/Prior/stage_open_prior.m | 2,331 | utf_8 | ac8589da9b02334ceb353c16e47f6385 |
function stage = stage_open_prior(label)
try
% instrfind returns the instrument object array
% objects = instrfind
% each entry includes the type, status, and name as follows
% Index: Type: Status: Name:
% 1 serial closed Serial-COM4
%
% objects can be... |
github | DIDSR/eeDAP-master | stage_send_com_prior.m | .m | eeDAP-master/src/stages/Prior/stage_send_com_prior.m | 1,939 | utf_8 | c61f5be107cb1eb97a382969223cd00c | % ##########################################################################
%% ########################## SEND COMMAND ##################################
% ##########################################################################
function ST_answer=stage_send_com_prior (S, CommandStr)
%---------------------... |
github | DIDSR/eeDAP-master | stage_check_busy_prior.m | .m | eeDAP-master/src/stages/Prior/stage_check_busy_prior.m | 320 | utf_8 | a00e2ede69fd8d3b16ec3e5460ff9482 |
%% ################# CHECK STAGE STATUS FOR PRIOR ##########################
function busy = stage_check_busy_prior(S)
try
status=stage_send_com_prior (S, '#');
if isempty(status)
busy = 1;
return
end
busy = str2num(status);
catch ME
error_show(ME)
end
end |
github | DIDSR/eeDAP-master | stage_set_origin_prior.m | .m | eeDAP-master/src/stages/Prior/stage_set_origin_prior.m | 2,593 | utf_8 | ced089681bdcb4533c7262f729fffb46 | % ##########################################################################
%% ################# MOVE STAGE SEQUENCE FOR PORIOR##########################
% ##########################################################################
function stage = stage_set_origin_prior(stage,h_stage)
try
% If communi... |
github | DIDSR/eeDAP-master | task_tracking_view.m | .m | eeDAP-master/src/tasks/task_tracking_view.m | 54,504 | utf_8 | 123ff7f873e2b8c26aa52cf6719030e6 | function task_tracking_view( hObj )
%description
%pathologist drive study
%do global registration after study
%task input column
%tracking_view,taskID,taskOrder,slot,Question1,Question2,Question3,Question4,Question5
%task output column
%tracking5_IHCproliferationIndices,TaskID,TaskOrder,Slot
%'track_veiw',s... |
github | DIDSR/eeDAP-master | task_registration_test.m | .m | eeDAP-master/src/tasks/task_registration_test.m | 18,668 | utf_8 | 1aac986e4fd58a11af346fdb4a20fc1e | function task_registration_test(hObj)
%description
%collect auto, fast and best registration distance
%task column
%registration_test,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H
%task output column
%registration_test,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H
%'Measure registration distance'
%stage mov... |
github | DIDSR/eeDAP-master | task_slider_imagescope.m | .m | eeDAP-master/src/tasks/task_slider_imagescope.m | 12,085 | utf_8 | 1fa759324230c9506b24d72e83135395 | function task_slider_imagescope(hObj)
%description
%use slider collect one number
%in digital mode, task opens imagescope with ROI annotation
%task input column
%slider_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task output column
%slider_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_... |
github | DIDSR/eeDAP-master | task_globalAndBestReg.m | .m | eeDAP-master/src/tasks/task_globalAndBestReg.m | 9,334 | utf_8 | fccce1b0f7f82e519fc4282064fb8c4c | function task_globalAndBestReg(hObj)
%description
%collect global and best registration distance
%task input column
%globalAndBestReg,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H
%task output column
%globalAndBestReg,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H
%stage moving duration,auto registration dura... |
github | DIDSR/eeDAP-master | task_mitotic_counts.m | .m | eeDAP-master/src/tasks/task_mitotic_counts.m | 22,170 | utf_8 | 6ed8f28fce0f6bd68ca819362be7ffa2 | function task_mitotic_counts( hObj )
%description
%count 10 mitotic for whole WSI
%task input column
%mitotic_counts,TaskID,TaskOrder,Slot
%task output column
%mitotic_counts,TaskID,TaskOrder,Slot
%image name, 10 count results
try
handles = guidata(hObj);
myData = handles.myData;
taskin... |
github | DIDSR/eeDAP-master | task_tracking3_LN_micromets.m | .m | eeDAP-master/src/tasks/task_tracking3_LN_micromets.m | 86,829 | utf_8 | ce64c48a40b44d93e32652cbe760e061 | function task_tracking3_LN_micromets( hObj )
%description
%pathologist drive LN_micromets study
%do global registration after study
%task column
%tracking3_LN_micromets,TaskID,TaskOrder,Slot
%task output column
%tracking3_LN_micromets,TaskID,TaskOrder,Slot
%'track_veiw',study duration, slide name
%start Re... |
github | DIDSR/eeDAP-master | task_globalAndBestRegPhoto.m | .m | eeDAP-master/src/tasks/task_globalAndBestRegPhoto.m | 13,204 | utf_8 | 34f382648565cf6e01db627aa5c77af6 | function task_globalAndBestRegPhoto(hObj)
%description
%collect global and best registration distance, and task camera picture for both registrations.
%task input column
%globalAndBestRegPhoto,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H
%task output column
%globalAndBestRegPhoto,TaskID,TaskOrder,Slot,ROI_X,... |
github | DIDSR/eeDAP-master | task_count2_imagescope.m | .m | eeDAP-master/src/tasks/task_count2_imagescope.m | 9,814 | utf_8 | ca021cc57c44d93628bedb5a8f0f16c3 | function task_count2_imagescope(hObj)
%description
%collect one number and mark out counting in imagescope
%task opens imagescope with ROI annotation, and saves reader's annotation
%xml file
%task input column
%count2_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task output column
%count... |
github | DIDSR/eeDAP-master | task_radio1of4.m | .m | eeDAP-master/src/tasks/task_radio1of4.m | 9,481 | utf_8 | 9eb1bc11e9c04949e18e02e39fa8f41e | function task_radio1of4(hObj)
%description
%choose 1 of out 4 check box
%task input column
%radio1of4,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext,Q_Op1,Q_Op2,Q_Op3,Q_Op4
%task output column
%radio1of4,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext,Q_Op1,Q_Op2,Q_Op3,Q_Op4
%study duration), chosen... |
github | DIDSR/eeDAP-master | task_refine_registration.m | .m | eeDAP-master/src/tasks/task_refine_registration.m | 8,343 | utf_8 | 988cff50398fa2d67842dc5fe0c12916 | function task_refine_registration(hObj)
%description
%This task is used to refine global registration during study.
%It cannot be called in input file.
try
handles = guidata(hObj);
myData = handles.myData;
taskinfo = myData.taskinfo;
calling_function = handles.myData.taskinfo.calling_func... |
github | DIDSR/eeDAP-master | task_globalReg_test.m | .m | eeDAP-master/src/tasks/task_globalReg_test.m | 7,622 | utf_8 | 3dd5571cc486cd04a995ef5d4f68403c | function task_globalReg_test(hObj)
%description
%collect global registration distance and task camera picture
%task input column
%globalReg_test,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H
%task output column
%globalReg_test,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,
%global registration distance,
%gl... |
github | DIDSR/eeDAP-master | task_mark_imagescope.m | .m | eeDAP-master/src/tasks/task_mark_imagescope.m | 8,807 | utf_8 | 395751e5c1ddc5ac2deccb3e419867a3 | function task_mark_imagescope(hObj)
%description
%mark out target in imagescope,
%task input column
%mark_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task output column
%mark_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task duration, "Done"
try
handles = g... |
github | DIDSR/eeDAP-master | task_start.m | .m | eeDAP-master/src/tasks/task_start.m | 10,541 | utf_8 | 322667160645d58ee6df3e67be1ba4c6 | function task_start(hObj)
%description
%start study
try
handles = guidata(hObj);
myData = handles.myData;
taskinfo = myData.taskinfo;
calling_function = handles.myData.taskinfo.calling_function;
display([taskinfo.task, ' called from ', calling_function])
switch calling_fun... |
github | DIDSR/eeDAP-master | task_HTT_TILS_20x.m | .m | eeDAP-master/src/tasks/task_HTT_TILS_20x.m | 23,661 | utf_8 | 8abb3074bb57511b933be7bf27725f4d | function task_HTT_TILS_20x(hObj)
try
handles = guidata(hObj);
myData = handles.myData;
taskinfo = myData.taskinfo;
calling_function = handles.myData.taskinfo.calling_function;
display([taskinfo.task, ' called from ', calling_function])
switch calling_function
... |
github | DIDSR/eeDAP-master | task_tracking4_GIST.m | .m | eeDAP-master/src/tasks/task_tracking4_GIST.m | 79,257 | utf_8 | 64b1c1811d4d64caef01f315a251a837 | function task_tracking4_GIST( hObj )
%description
%pathologist drive GIST study
%do global registration after study
%task input column
%tracking4_GIST,TaskID,TaskOrder,Slot
%task output column
%tracking4_GIST,TaskID,TaskOrder,Slot
%'track_veiw',study duration, slide name
%start Record Time,stop Record Time... |
github | DIDSR/eeDAP-master | task_get_WSI_position.m | .m | eeDAP-master/src/tasks/task_get_WSI_position.m | 19,152 | utf_8 | b18d2969ea4c197ce2a7c0e5f3fb8c4a | function task_get_WSI_position(hObj)
%description
%microscope drive task, return corresponding WSI position
%task input column
%get_WSI_position,TaskID,TaskOrder,ROI_W,ROI_H,Qtext
%task output column
%get_WSI_position,TaskID,TaskOrder,ROI_W,ROI_H,Qtext,task duration,wsi name,
%wsi_x_position,wsi_y_position
... |
github | DIDSR/eeDAP-master | task_tracking5_IHCproliferationIndices.m | .m | eeDAP-master/src/tasks/task_tracking5_IHCproliferationIndices.m | 77,173 | utf_8 | 878d8fb4a87f14afe2e81382c4087c93 | function task_tracking5_IHCproliferationIndices( hObj )
%description
%pathologist drive IHCproliferationIndices study
%do global registration after study
%task input column
%tracking5_IHCproliferationIndices,TaskID,TaskOrder,Slot
%task output column
%tracking5_IHCproliferationIndices,TaskID,TaskOrder,Slot
%... |
github | DIDSR/eeDAP-master | task_slider.m | .m | eeDAP-master/src/tasks/task_slider.m | 12,376 | utf_8 | ede6cca79a9ae45568580a9d1700b0ab | function task_slider(hObj)
%description
%use slider collect one number
%task column
%slider,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task output column
%slider,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task duration,evaluate result
try
handles = guidata(hObj);
myData =... |
github | DIDSR/eeDAP-master | task_tracking2_Breast_ICA_synoptic.m | .m | eeDAP-master/src/tasks/task_tracking2_Breast_ICA_synoptic.m | 90,724 | utf_8 | 716cc287f9615973cb8392ec94f473c1 | function task_tracking2_Breast_ICA_synoptic( hObj )
%description
%pathologist drive Breast_ICA_synoptic study
%do global registration after study
%task column
%tracking2_Breast_ICA_synoptic,TaskID,TaskOrder,Slot
%task output column
%tracking2_Breast_ICA_synoptic,TaskID,TaskOrder,Slot
%'track_veiw',study dur... |
github | DIDSR/eeDAP-master | task_evaluate_imagescope.m | .m | eeDAP-master/src/tasks/task_evaluate_imagescope.m | 7,418 | utf_8 | 5bf555a1dd4cced450d8e989aefbabad | function task_evaluate_imagescope(hObj)
%description
%evaluate ROI with one number
%task opens imagescope with ROI annotation
%task input column
%evaluate_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext,evaluateText
%task input column
%evaluate_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_... |
github | DIDSR/eeDAP-master | task_checkMof4.m | .m | eeDAP-master/src/tasks/task_checkMof4.m | 17,419 | utf_8 | 32ccce5b4f075607d8e2f4bce29c9e10 | function task_checkMof4(hObj)
%description
%choose M of out 4 check box
%task input column
%checkMof4,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext,Q_Op1,Q_Op2,Q_Op3,Q_Op4
%task output column
%checkMof4,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext,Q_Op1,Q_Op2,Q_Op3,Q_Op4,
%task duration,Q1_resul... |
github | DIDSR/eeDAP-master | task_tracking1_Breast_ADH_DCIS_ICA.m | .m | eeDAP-master/src/tasks/task_tracking1_Breast_ADH_DCIS_ICA.m | 83,135 | utf_8 | 66df8ba282faa38e3196542d801630d6 | function task_tracking1_Breast_ADH_DCIS_ICA( hObj )
%description
%pathologist drive Breast_ADH_DCIS_ICA study
%do global registration after study
%task input column
%tracking1_Breast_ADH_DCIS_ICA,TaskID,TaskOrder,Slot
%task output column
%tracking1_Breast_ADH_DCIS_ICA,TaskID,TaskOrder,Slot
%'track_veiw',stu... |
github | DIDSR/eeDAP-master | task_count.m | .m | eeDAP-master/src/tasks/task_count.m | 7,976 | utf_8 | e1071e7898d80fdfe31d6e18a273b8d4 | function task_count(hObj)
%description
%collect one number
%task input column
%count,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task output column
%count,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext,
%task duration,count result
try
handles = guidata(hObj);
myData = handles.m... |
github | DIDSR/eeDAP-master | task_Mic_to_WSI_registration.m | .m | eeDAP-master/src/tasks/task_Mic_to_WSI_registration.m | 25,480 | utf_8 | ce59dcf13b91f56dd4675938ae40daaf | function task_Mic_to_WSI_registration(hObj)
%description
%evaluate Mic to WSI registration accuarcy
%collect:
%global registration wsi x and y position
%local registration wsi x and y position
%manually selected wsi x and y truth position by imagescope
%task input column
%Mic_to_WSI_registration,TaskID,TaskO... |
github | DIDSR/eeDAP-master | taskimage_load.m | .m | eeDAP-master/src/tasks/taskimage_load.m | 4,478 | utf_8 | 2009e37782be0c7317613e87d1b626bf | function taskimage_load(hObj)
try
%--------------------------------------------------------------------------
% This function loads the stimulus image and displayes it on the
% ImageAxes. It also modifies the axes properties so that the stimulus
% image fits.
% This function is the part of the... |
github | DIDSR/eeDAP-master | task_HTT_TILS_40x.m | .m | eeDAP-master/src/tasks/task_HTT_TILS_40x.m | 23,641 | utf_8 | af8fed06bc2c37cb72ab7f32a7babde1 | function task_HTT_TILS_40x(hObj)
try
handles = guidata(hObj);
myData = handles.myData;
taskinfo = myData.taskinfo;
calling_function = handles.myData.taskinfo.calling_function;
display([taskinfo.task, ' called from ', calling_function])
switch calling_function
... |
github | DIDSR/eeDAP-master | task_mitotic_expert.m | .m | eeDAP-master/src/tasks/task_mitotic_expert.m | 30,269 | utf_8 | 607c1278cb4ca178c8527fdcdf4a76fd | function task_mitotic_expert( hObj )
%description
%collect expert study result, 8 check boxes, and 1 score
%output can be used as input for task_mitotic_train
%task input column
%mitotic_expert,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H
%task output column
%mitotic_expert,TaskID,TaskOrder,Slot,ROI_X,ROI_... |
github | DIDSR/eeDAP-master | task_mitotic_train.m | .m | eeDAP-master/src/tasks/task_mitotic_train.m | 30,965 | utf_8 | 7ffde86dea2480e166c9f7eb9c62a559 | function task_mitotic_train( hObj )
%description
%collect training study result, 8 check boxes, and 1 score
%task column
%mitotic_expert,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,8 check boxes truth,scoreTruth
%task output column
%mitotic_expert,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H
%'mitotic_tr... |
github | DIDSR/eeDAP-master | task_count_imagescope.m | .m | eeDAP-master/src/tasks/task_count_imagescope.m | 9,266 | utf_8 | f03515ef5aa154ca7c1996245fe36c53 | function task_count_imagescope(hObj)
%description
%collect one number
%task opens imagescope with ROI annotation
%task input column
%count_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task output column
%count_imagescope,TaskID,TaskOrder,Slot,ROI_X,ROI_Y,ROI_W,ROI_H,Qtext
%task duration,c... |
github | DIDSR/eeDAP-master | bfCheckJavaPath.m | .m | eeDAP-master/src/bfmatlab/bfCheckJavaPath.m | 3,347 | utf_8 | 10338284140f806a8da0a37de50a6664 | function [status, version] = bfCheckJavaPath(varargin)
% bfCheckJavaPath check Bio-Formats is included in the Java class path
%
% SYNOPSIS bfCheckJavaPath()
% status = bfCheckJavaPath(autoloadBioFormats)
% [status, version] = bfCheckJavaPath()
%
% Input
%
% autoloadBioFormats - Optional. A boole... |
github | DIDSR/eeDAP-master | createMinimalOMEXMLMetadata.m | .m | eeDAP-master/src/bfmatlab/createMinimalOMEXMLMetadata.m | 4,094 | utf_8 | d749a8ce7895da8405a789d7b6a0c754 | function metadata = createMinimalOMEXMLMetadata(I, varargin)
% CREATEMINIMALOMEXMLMETADATA Create an OME-XML metadata object from an input matrix
%
% createMinimalOMEXMLMetadata(I) creates an OME-XML metadata object from
% an input 5-D array. Minimal metadata information is stored such as the
% pixels dimensio... |
github | DIDSR/eeDAP-master | bfsave.m | .m | eeDAP-master/src/bfmatlab/bfsave.m | 5,285 | utf_8 | 1caba8d6ea3e021cc71f100929200dcc | function bfsave(varargin)
% BFSAVE Save a 5D matrix into an OME-TIFF using Bio-Formats library
%
% bfsave(I, outputPath) writes the input 5D matrix into a new file
% specified by outputPath.
%
% bfsave(I, outputPath, dimensionOrder) specifies the dimension order of
% the input matrix. Default valuse is XYZC... |
github | sandialabs/seacas-master | zoltPartSpy.m | .m | seacas-master/packages/zoltan/src/matlab/zoltPartSpy.m | 5,538 | utf_8 | 25b420e3bee7272a09ff3bdb9ae16c74 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This matlab function produces spy-like plots in which the nonzeros are
% colored based on the partition that owns them.
%
% The function takes 3 arguments: the filename of a matrix in matrix market
% format, the name of the zoltan output ... |
github | sandialabs/seacas-master | plotcolors.m | .m | seacas-master/packages/zoltan/src/matlab/plotcolors.m | 1,481 | utf_8 | dc7cd5753308a48fd7b6e77b2c9b0c03 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% This matlab function returns a unique color/symbol pair for plotting.
% The total number of color/symbol pairs needed and the index of this
% color/symbol are taken as input arguments.
%
% Written by Michael Wolf
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%... |
github | flavioluiz/MIMO-FRF-master | mimo_frf_H1.m | .m | MIMO-FRF-master/codes/mimo_frf_H1.m | 1,551 | utf_8 | b3b137ab3f08087fdc9c811624c9e2af | %% h1 MIMO FRF estimator
% This function estimate a MIMO FRF by using the H1 Algorithm.
%
% input_time_data is an array of matrices; each matrix represents the input
% for a single experimental test, each row is a time-sample, each
% collumn represent a different system input;
%
% output_time_data is an array of matric... |
github | flavioluiz/MIMO-FRF-master | mimo_frf_H2.m | .m | MIMO-FRF-master/codes/mimo_frf_H2.m | 1,562 | utf_8 | 021de53cfbe4e3ff5df967e25e40df32 | %% h2 MIMO FRF estimator
% This function estimate a MIMO FRF by using the H2 Algorithm.
%
% input_time_data is an array of matrices; each matrix represents the input
% for a single experimental test, each row is a time-sample, each
% collumn represent a different system input;
%
% output_time_data is an array of matric... |
github | rootmeansquare/SpeechEmotionDetection-master | fuzer.m | .m | SpeechEmotionDetection-master/fuzer.m | 2,133 | utf_8 | 06f1a09f58d41a74dc5849ccf6e37133 | function [normed] = fuzer(trainingFull)
% Call the fuzzification script
[normed, sortedData] = statss(trainingFull);
end
function [fuzzPlace,sortedData] = statss(training)
% Creating zero arrays
[len, wid] = size(training(:,1));
splSize = floor(len/5);
%sorts data
sortedData = sort(training);
statsData = zeros(... |
github | rootmeansquare/SpeechEmotionDetection-master | fft2barkmx.m | .m | SpeechEmotionDetection-master/rastamat/fft2barkmx.m | 1,484 | utf_8 | d883b1f28f1f118eca09c08291bd7c3a | function wts = fft2barkmx(nfft, sr, nfilts, width, minfreq, maxfreq)
% wts = fft2barkmx(nfft, sr, nfilts, width, minfreq, maxfreq)
% Generate a matrix of weights to combine FFT bins into Bark
% bins. nfft defines the source FFT size at sampling rate sr.
% Optional nfilts specifies the number of output b... |
github | rootmeansquare/SpeechEmotionDetection-master | process_options.m | .m | SpeechEmotionDetection-master/rastamat/process_options.m | 5,168 | utf_8 | 48c1f0411ce12896ae4b7b06bb654407 | % PROCESS_OPTIONS - Processes options passed to a Matlab function.
% This function provides a simple means of
% parsing attribute-value options. Each option is
% named by a unique string and is given a default
% value.
%
% Usage: [var1, var... |
github | rootmeansquare/SpeechEmotionDetection-master | fft2melmx.m | .m | SpeechEmotionDetection-master/rastamat/fft2melmx.m | 4,994 | utf_8 | 8f51153c85c0960044bfd717864ef396 | function [wts,binfrqs] = fft2melmx(nfft, sr, nfilts, width, minfrq, maxfrq, htkmel, constamp)
% [wts,frqs] = fft2melmx(nfft, sr, nfilts, width, minfrq, maxfrq, htkmel, constamp)
% Generate a matrix of weights to combine FFT bins into Mel
% bins. nfft defines the source FFT size at sampling rate sr.
% Op... |
github | rootmeansquare/SpeechEmotionDetection-master | fxpefac.m | .m | SpeechEmotionDetection-master/voicebox/fxpefac.m | 16,150 | utf_8 | 81d4dfcc6e2b35f4be44a9fa6f97e7fa | function [fx,tx,pv,fv]=fxpefac(s,fs,tinc,m,pp)
%FXPEFAC PEFAC pitch tracker [FX,TT,PV,FV]=(S,FS,TINC,M,PP)
%
% Input: s(ns) Speech signal
% fs Sample frequency (Hz)
% tinc Time increment between frames (s) [0.01]
% or [start increment end]
% m ... |
github | rootmeansquare/SpeechEmotionDetection-master | v_sigma.m | .m | SpeechEmotionDetection-master/voicebox/v_sigma.m | 10,045 | utf_8 | c80d391af6c9d395b62d8ffb3013beaf | function [gci goi] = v_sigma(lx,fs,fmax)
% Singularity in EGG by Multiscale Analysis (SIGMA) Algorithm
%
% [gci goi] = v_sigma(lx,fs,fmax)
%
% Inputs:
% lx Nx1 vector LX signal
% fs Sampling freq (Hz)
% fmax [Optional] max laryngeal freq
% Outputs:
% gci Vector of gcis... |
github | rootmeansquare/SpeechEmotionDetection-master | psycestu.m | .m | SpeechEmotionDetection-master/voicebox/psycestu.m | 10,646 | utf_8 | be192cd7406b19804284cba252356c33 | function [xx,ii,m,v]=psycestu(iq,x,r,xp)
% psycestu estimate unimodal psychometric function
%
% Usage: [xx,ii,m,v]=psycestu(-n,p,q,xp) % initialize n models
% [xx,ii,m,v]=psycestu(i,x,r) % supply a trial result to psycest
% psycestu(i) % plot pdf of model i
% [p,q]=psy... |
github | rootmeansquare/SpeechEmotionDetection-master | sphrharm.m | .m | SpeechEmotionDetection-master/voicebox/sphrharm.m | 18,380 | utf_8 | 7b0c8fcf3c1988b0154c93c514286293 | function [u,v,w]=sphrharm(m,a,b,c,d)
%SPHRHARM forward and inverse spherical harmonic transform
%
% Usage: (1) y=('f',n,x) % Calculate complex transform of spatial data x up to order n
%
% (2) y=('fr',n,x) % Calculate real transform of spatial data x(ne,na) up to order n
% %... |
github | rootmeansquare/SpeechEmotionDetection-master | fxrapt.m | .m | SpeechEmotionDetection-master/voicebox/fxrapt.m | 16,559 | utf_8 | 09f92f4cdb47a8aa6221990109f8fa77 | function [fx,tt]=fxrapt(s,fs,mode)
%FXRAPT RAPT pitch tracker [FX,VUV]=(S,FS)
%
% Input: s(ns) Speech signal
% fs Sample frequency (Hz)
% mode 'g' will plot a graph [default if no output arguments]
% 'u' will include unvoiced fames (with fx=NaN)
%
% Outputs: fx... |
github | rootmeansquare/SpeechEmotionDetection-master | estnoisem.m | .m | SpeechEmotionDetection-master/voicebox/estnoisem.m | 15,891 | utf_8 | c24d580bba927c7412494f512b156253 | function [x,zo,xs]=estnoisem(yf,tz,pp)
%ESTNOISEM - estimate noise spectrum using minimum statistics
%
% Usage: ninc=round(0.016*fs); % frame increment [fs=sample frequency]
% ovf=2; % overlap factor
% f=rfft(enframe(s,hanning(ovf*ninc,'periodic'),ninc),ovf*ninc,2);
% ... |
github | kapibara/ToF-Calibration-master | do_select_rgb_corners.m | .m | ToF-Calibration-master/do_select_rgb_corners.m | 1,375 | utf_8 | 412dbb282c6d2aaa6521927f9042c147 | %do_select_rgb_corners()
% UI function.
% Kinect calibration toolbox by DHC
function do_select_rgb_corners()
global grid_p grid_x rfiles rgb_grid_p rgb_grid_x
global corner_count_x corner_count_y dx
fprintf('-------------------\n');
fprintf('Selecting rgb corners\n');
fprintf('-------------------\n');
ccou... |
github | kapibara/ToF-Calibration-master | print_calib_color.m | .m | ToF-Calibration-master/print_calib_color.m | 1,713 | UNKNOWN | b5527c4dc8cd3f1c9207a01f35fe7ba7 | %print_calib_color(k,depth_calib,depth_calib_error)
% Prints color calibration info.
% depth_calib_error is optional
%
% Kinect calibration toolbox by DHC
function print_calib_color(k,depth_calib,depth_calib_error)
if(nargin < 3)
depth_calib_error = [];
end
fprintf('Color internals:\n');
fprintf(' Foc... |
github | kapibara/ToF-Calibration-master | rgb_calib.m | .m | ToF-Calibration-master/rgb_calib.m | 2,098 | utf_8 | 43c56376b69b1ce117cd4f5a1a2b65a4 | %[K,R,t,kc,error_var]=rgb_calib(K0,kc0,R0,t0,rgb_grid_p,rgb_grid_x,use_fixed_intrinsic)
% Calibration of a color camera through non-linear minimization.
%
% K0 [3x3] initial intrinsics matrix
% kc0 [1x5] initial distortion coefficients
% R0 {N}[3x3] cell array of initial world to camera rotations
% t0 {N}[3x1] ce... |
github | kapibara/ToF-Calibration-master | reduce_depth_samples.m | .m | ToF-Calibration-master/reduce_depth_samples.m | 1,392 | utf_8 | b30b9ab24c4cc752cf3afa84f7a8a8f3 | %reduce_depth_point_count(max_count)
% Reduces the total ammount of points in depth_plane_points and
% depth_plane_disparity to make the minimization possible with limited
% memory.
%
% Kinect calibration toolbox by DHC
function [points, disparity]=reduce_depth_samples(points_in, disparity_in, max_count)
if(i... |
github | kapibara/ToF-Calibration-master | distort.m | .m | ToF-Calibration-master/distort.m | 656 | utf_8 | 48a4fe34f25bb60b472f5f992b49d973 | %Xd = distort(Xn,kc)
% Distorts points according to the Heikkila's distortion model (same used
% by Bouguet's toolbox).
%
% Xn [2xP] normalized points (already divided by Z component)
% kc [1x5] distortion coefficients
% Xd [2xP] distorted points
%
% Kinect calibration toolbox by DHC
function Xd = distort(Xn... |
github | kapibara/ToF-Calibration-master | visualize_disparity.m | .m | ToF-Calibration-master/visualize_disparity.m | 473 | utf_8 | e621a0b5a2d116271c4e5dda052b8812 | %im_rgb=visualize_disparity(im)
% Creates a visualization rgb image from a disparity image
%
% Kinect calibration toolbox by DHC
function im_rgb=visualize_disparity(im)
if(size(im,3) == 1)
im_rgb = mat2rgb(im,jet(256));
s = [1 2 1; 0 0 0; -1 -2 -1];
dx = imfilter(im,s,'replicate','same');
dy = imfi... |
github | kapibara/ToF-Calibration-master | rgb_calib_cost.m | .m | ToF-Calibration-master/rgb_calib_cost.m | 663 | utf_8 | de8a0c2cd566a069f8f0f422c6f699eb | %cost=rgb_calib_cost(raw,params0,rgb_grid_p,rgb_grid_x,use_fixed_intrinsic)
% Cost function for rgb_calib(). Reprojects corners onto image and compares
% pixel positions.
%
% Kinect calibration toolbox by DHC
function cost=rgb_calib_cost(raw,params0,rgb_grid_p,rgb_grid_x,use_fixed_intrinsic)
params = rgb_calib_... |
github | kapibara/ToF-Calibration-master | extrinsic2plane.m | .m | ToF-Calibration-master/extrinsic2plane.m | 245 | utf_8 | d1dfe49fe912a5dbc1fa85a50c612c3e | %[N,d]=extrinsic2plane(R,t)
% Extracts calibration plane parameters (normal and distance from origin)
% from the extrinsics.
%
% Kinect calibration toolbox by DHC
function [N,d]=extrinsic2plane(R,t)
N = R(:,3);
d = dot(R(:,3),t);
|
github | kapibara/ToF-Calibration-master | rgb_calib_p2r.m | .m | ToF-Calibration-master/rgb_calib_p2r.m | 753 | utf_8 | cf6dfdd2113fe2e0dc24dcca83857bd1 | %raw=rgb_calib_p2r(params,use_fixed_intrinsic)
% Used by rgb_calib()
% Kinect calibration toolbox by DHC
function raw=rgb_calib_p2r(params,use_fixed_intrinsic)
raw = [];
base = 1;
if(~use_fixed_intrinsic)
%Internal matrix
raw(base) = params.K(1,1);
raw(base+1) = params.K(2,2);
raw(base+2) = params... |
github | kapibara/ToF-Calibration-master | calibrate_intel_cost_depth.m | .m | ToF-Calibration-master/calibrate_intel_cost_depth.m | 893 | utf_8 | af23ce34261d68328670c14b77614af2 | % cost=calibrate_intel_cost_depth(params,options,depth_plane_points,depth_plane_disparity)
% Cost for depth images, used by calibrate_intel_cost;
% Uses both depth and corner-based cost on confidence map
%
% Kinect calibration toolbox by DHC
function [cost, comp]=calibrate_intel_cost_depth(calib,depth_points,depth... |
github | kapibara/ToF-Calibration-master | calibrate_options.m | .m | ToF-Calibration-master/calibrate_options.m | 741 | utf_8 | 6dbd46400c16d91cb4f02c3ffc7bec90 | % options=calibrate_kinect_options()
% Creates the options struct for calibrate_kinect().
% Set the different use_fixed_* fields to control the degrees of freedom in
% the minimization.
%
% Kinect calibration toolbox by DHC
function options=calibrate_options()
options.display = 'iter'; %No info
options.corre... |
github | kapibara/ToF-Calibration-master | calibrate_intel_cost.m | .m | ToF-Calibration-master/calibrate_intel_cost.m | 871 | utf_8 | c7f0b7b88020ef249e78f3ec827380d2 | % cost=calibrate_intel_cost_depth(params,options,depth_plane_points,depth_plane_disparity)
% Cost for depth images, used by calibrate_intel_cost;
% Uses both depth and corner-based cost on confidence map
%
% Kinect calibration toolbox by DHC
function [cost, comp ] =calibrate_intel_cost(calib,depth_points,depth_dep... |
github | kapibara/ToF-Calibration-master | compute_collineation.m | .m | ToF-Calibration-master/compute_collineation.m | 1,334 | utf_8 | 3805fcf2baf2d87c37d0707643e46bef | %Function from Bouguet's camera calibration toolbox.
function [H,Hnorm,inv_Hnorm] = compute_collineation (a00, a10, a11, a01);
% new formalism using homographies
a00 = a00 / a00(3);
a10 = a10 / a10(3);
a11 = a11 / a11(3);
a01 = a01 / a01(3);
% Prenormalization of point coordinates (very important):
% (A... |
github | kapibara/ToF-Calibration-master | select_rgb_corners_im.m | .m | ToF-Calibration-master/select_rgb_corners_im.m | 744 | utf_8 | 6d6546e40e25ad013714f4cb0be2bb0b | %[p,x,win_dx]=select_rgb_corners_im(im,dx,win_dx)
% Prompts the user to select grid corners on an image.
%
% Kinect calibration toolbox by DHC
function [p,x,win_dx,b]=select_rgb_corners_im(im,dx,win_dx)
im = mean(double(im),3);
fc = [530 530];
cc = [320 240];
done = false;
while(~done)
h... |
github | kapibara/ToF-Calibration-master | homography_from_corners.m | .m | ToF-Calibration-master/homography_from_corners.m | 1,076 | utf_8 | 2af74fe8f87ecdec2ea51d375af64c89 | %H=homography_from_corners(p,x)
% Builds a homography from two corresponding point lists.
%
% p [2xP]
% x [2xP]
% H [3x3] p=H*x (up to scale)
%
% Kinect calibration toolbox by DHC
function H=homography_from_corners(p,x)
if(size(p,1) > 2)
p = p(1:2,:) ./ repmat(p(3,:),2,1);
end
if(size(x,1) > 2)
x = ... |
github | kapibara/ToF-Calibration-master | project_points_k.m | .m | ToF-Calibration-master/project_points_k.m | 1,109 | utf_8 | 4f8a4c22bc8aa6a724fa8fdc75dfe82f | %p=project_points_k(X,K,kc,R,t)
% Projects a series of points onto the image plane
%
% X [3xP] points in world coordinate frame
% K [3x3] intrinsics matrix
% kc [1x5] distortion coefficients
% R [3x3] world to camera rotation
% t [3x1] world to camera translation
% p [2xP] points in pixel coordinates
%
% Kine... |
github | kapibara/ToF-Calibration-master | cornerfinder.m | .m | ToF-Calibration-master/cornerfinder.m | 5,305 | utf_8 | f0599c424da5d89ce9b43974e18b5c20 | %Function from Bouguet's camera calibration toolbox.
function [xc,good,bad,type] = cornerfinder(xt,I,wintx,winty,wx2,wy2)
%[xc] = cornerfinder(xt,I);
%
%Finds the sub-pixel corners on the image I with initial guess xt
%xt and xc are 2xN matrices. The first component is the x coordinate
%(horizontal) and the second com... |
github | kapibara/ToF-Calibration-master | select_plane_polygon.m | .m | ToF-Calibration-master/select_plane_polygon.m | 1,539 | utf_8 | 43bc731127abc7ac5072f403315e901e | %polygon=select_plane_polygon(imd)
% UI function. Asks the user to select the polygon enclosing the
% calibration plane in the depth image.
%
% Kinect calibration toolbox by DHC
function polygon=select_plane_polygon(imd)
display('Select corners of polygon enclosing plane points');
display('[left=add corner,ESC... |
github | kapibara/ToF-Calibration-master | rgb_calib_r2p.m | .m | ToF-Calibration-master/rgb_calib_r2p.m | 750 | utf_8 | 7c950274eb83aa491751e91288028567 | %params=rgb_calib_r2p(raw,params0,use_fixed_intrinsic)
% Used by rgb_calib()
% Kinect calibration toolbox by DHC
function params=rgb_calib_r2p(raw,params0,use_fixed_intrinsic)
params = params0;
base = 1;
if(~use_fixed_intrinsic)
%Internal matrix
params.K = [raw(base) 0 raw(base+2);
0 raw(base+1) ra... |
github | kapibara/ToF-Calibration-master | draw_axes.m | .m | ToF-Calibration-master/draw_axes.m | 1,345 | utf_8 | 305dc34f3b2ca8a6d5b0597d766d39ba | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Function taken from the OCamCalib toolbox.
% Modified by Daniel Herrera C.
% - Changed plot(y,x) to plot(x,y)
function draw_axes(corners,corner_count_x)
xo_X = corners(1,1:corner_count_x)+1;
yo_X = corners(2,1:corner_count_x)+1;
xo_Y = corners(1,1:corner_count_x:end)+1;
... |
github | kapibara/ToF-Calibration-master | read_disparity.m | .m | ToF-Calibration-master/read_disparity.m | 681 | utf_8 | eec127cee4c8caf49e303cf7248a09dd | %imd = read_disparity(filename)
% Reads a disparity image from disk. Corrects endianness issues. Replaces
% 'nan_value' values with NaNs. Default for nan_value is 2047.
%
% Kinect calibration toolbox by DHC
function imd = read_disparity(filename,options)
if(isfield(options,'read_image'))
[imd,max_value]=opti... |
github | kapibara/ToF-Calibration-master | count_squares.m | .m | ToF-Calibration-master/count_squares.m | 1,444 | utf_8 | 9a0df3eed73ea4a768ab98cd59525704 | %Function from Bouguet's camera calibration toolbox.
function ns = count_squares(I,x1,y1,x2,y2,win);
[ny,nx] = size(I);
if ((x1-win <= 0) || (x1+win >= nx) || (y1-win <= 0) || (y1+win >= ny) || ...
(x2-win <= 0) || (x2+win >= nx) || (y2-win <= 0) || (y2+win >= ny))
ns = -1;
return;
end;
if ((x1 - x2)... |
github | kapibara/ToF-Calibration-master | extract_grid.m | .m | ToF-Calibration-master/extract_grid.m | 9,329 | utf_8 | 2053597ae28867f32396ef1cc05a17a4 | %Function from Bouguet's camera calibration toolbox.
% Modified by Daniel Herrera C. - Adapted to the Kinect Calibration Toolbox
function [x,X,b,n_sq_x,n_sq_y,ind_orig,ind_x,ind_y] = extract_grid(I,wintx,winty,fc,cc,kc,dX,dY,xr,yr,click_mode)
if nargin < 11,
click_mode = 1;
end;
if nargin < 10,
xr ... |
github | kapibara/ToF-Calibration-master | reorder_corners.m | .m | ToF-Calibration-master/reorder_corners.m | 5,158 | utf_8 | b49c0844fb38aeca01b5906c74350b27 | function [pp,xx,corner_count_x]=reorder_corners(p,dx)
count = size(p,2);
if(count == 0)
pp = [];
xx = [];
return
end
if(size(p,1)~=2)
error('p must be 2xN');
end
p(3,:) = 1;
%Origin corner
ptemp = p;
[~,i] = min(ptemp(1,:));
pref = ptemp(:,i);
ptemp(:,i) ... |
github | kapibara/ToF-Calibration-master | calibrate_intel.m | .m | ToF-Calibration-master/calibrate_intel.m | 3,715 | utf_8 | 49b9fb11bb5bc702f15882ad5d3eb6de | %[params,params_error]=calibrate_kinect(options,rgb_grid_p,rgb_grid_x,depth_plane_points,depth_plane_disparity,params0)
% Performas a non-linear minimization of the calibration parameters using
% levenberg-marquardt algorithm.
%
% options struct created with calibrate_kinect_options()
% rgb_grid_p {K}{N}[2xP] cell... |
github | kapibara/ToF-Calibration-master | print_calib_depth.m | .m | ToF-Calibration-master/print_calib_depth.m | 2,485 | UNKNOWN | d0fb1c3deb1ce81635c2eb485f46806f | %print_calib_color(depth_calib,depth_calib_error)
% Prints depth calibration info.
% depth_calib_error is optional
%
% Kinect calibration toolbox by DHC
function print_calib_depth(depth_calib,depth_calib_error)
if(nargin < 2)
depth_calib_error = [];
end
fprintf('Depth internals:\n');
fprintf(' Focal l... |
github | kapibara/ToF-Calibration-master | rotationpars.m | .m | ToF-Calibration-master/rotationpars.m | 376 | utf_8 | 5e467689e132e8767645691d551f0773 | % by Juho Kannala
%Matrix form of rotation to vector form (Rodriguez formula)
function t=rotationpars(R)
[V,D]=eig(R-eye(3));
evs=diag(D);
[minv,mini]=min(evs);
vect=V(:,mini);
cosphi=0.5*(trace(R)-1);
sinphi=0.5*vect'*[ R(3,2)-R(2,3); R(1,3)-R(3,1); R(2,1)-R(1,2)];
%if cosphi==0
% phi=pi/2;
%else
% phi=atan(sinph... |
github | kapibara/ToF-Calibration-master | find_images_Intel.m | .m | ToF-Calibration-master/find_images_Intel.m | 2,501 | utf_8 | 241cc8972e4854e110e3ed14d37ae36b | %find_images - Searches the given path to find the calibration images.
%Input
% path [string] the path where images are located
% rfile_format {1xK}[string] format of the filenames for the K color
% cameras. Used with sprintf(rfile_format{k},image_number).
% dfile_format [string] format of the fil... |
github | kapibara/ToF-Calibration-master | do_initial_rgb_calib.m | .m | ToF-Calibration-master/do_initial_rgb_calib.m | 2,547 | utf_8 | 780effb8c50b06b84e7f832cbd93f46d | %do_initial_rgb_calib()
% UI function
% Kinect calibration toolbox by DHC
function do_initial_rgb_calib(do_joint_calib,use_fixed_init)
%Inputs
global dataset_path rfiles
global rgb_grid_p rgb_grid_x
%Outputs
global calib0
%Check previous steps
%Check previous steps
if(isempty(rgb_grid_p))
do_sel... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.