forked from hubertgabrys/DicomToolboxMatlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.m
969 lines (749 loc) · 39.5 KB
/
start.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
function varargout = start(varargin)
% START MATLAB code for start.fig
% START, by itself, creates a new START or raises the existing
% singleton*.
%
% H = START returns the handle to a new START or the handle to
% the existing singleton*.
%
% START('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in START.M with the given input arguments.
%
% START('Property','Value',...) creates a new START or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before start_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to start_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 start
% Last Modified by GUIDE v2.5 10-Mar-2017 21:26:23
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @start_OpeningFcn, ...
'gui_OutputFcn', @start_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 start is made visible.
function start_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 start (see VARARGIN)
% Choose default command line output for start
handles.output = hObject;
maximumNrOfStructures = 50;
handles.selected_structures = zeros(maximumNrOfStructures,1);
handles.defaultdatapath = fullfile('.');
handles.slice = -1;
% add to path
addpath(fullfile('dicom_import'),...
fullfile('feature_extraction'),...
fullfile('utils'),...
fullfile('visualization'));
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes start wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = start_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 checkbox1.
function checkbox1_Callback(hObject, eventdata, handles)
% hObject handle to checkbox1 (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 checkbox1
% --- Executes on button press in checkbox2.
function checkbox2_Callback(hObject, eventdata, handles)
% hObject handle to checkbox2 (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 checkbox2
% --- Executes on button press in Up_button.
function Up_button_Callback(hObject, eventdata, handles)
% show the hourglass during computation
oldpointer = get(handles.figure1, 'pointer');
set(handles.figure1, 'pointer', 'watch')
drawnow;
handles.slice = handles.slice + 1;
% Update handles structure
guidata(hObject, handles)
handles.slice = plotDoseAndCT( hObject, eventdata, handles);
% Update handles structure
guidata(hObject, handles)
% set back an arrow
set(handles.figure1, 'pointer', oldpointer)
% --- Executes on button press in Down_button.
function Down_button_Callback(hObject, eventdata, handles)
% show the hourglass during computation
oldpointer = get(handles.figure1, 'pointer');
set(handles.figure1, 'pointer', 'watch')
drawnow;
handles.slice = handles.slice - 1;
% Update handles structure
guidata(hObject, handles)
handles.slice = plotDoseAndCT( hObject, eventdata, handles );
% Update handles structure
guidata(hObject, handles)
% set back an arrow
set(handles.figure1, 'pointer', oldpointer)
% % --- Executes on button press in Plot_button.
% function Plot_button_Callback(hObject, eventdata, handles)
%
% % show the hourglass during computation
% oldpointer = get(handles.figure1, 'pointer');
% set(handles.figure1, 'pointer', 'watch')
% drawnow;
%
% % Update handles structure
% guidata(hObject, handles)
% axes(handles.axes1);
% handles.slice = plotDoseAndCT( hObject, eventdata, handles );
% guidata(hObject, handles)
%
% % set back an arrow
% set(handles.figure1, 'pointer', oldpointer)
% --- Executes on button press in LoadTPSdata_button.
function LoadTPSdata_button_Callback(hObject, eventdata, handles)
% show the hourglass during computation
oldpointer = get(handles.figure1, 'pointer');
set(handles.figure1, 'pointer', 'watch')
drawnow;
[filename, directory] = uigetfile([handles.defaultdatapath 'mat'],...
'Choose tps_data.mat file...');
if ischar(filename) && ischar(directory)
load(fullfile(directory, filename));
%load([directory '\' filename]);
handles.output_directory = directory;
handles.s_fieldnames = fieldnames(tps_data.structures);
setPatName(handles);
handles.tps_data = tps_data;
guidata(hObject, handles);
enablecheckboxes(hObject, eventdata, handles)
handles.slice = plotDoseAndCT( hObject, eventdata, handles );
end
% set back an arrow
set(handles.figure1, 'pointer', oldpointer)
function setPatName(handles)
[~, deepestFolder] = fileparts(handles.output_directory(1:end-1));
set(handles.patname_text, 'String', deepestFolder);
% --- Executes on button press in structure32_checkbox.
function checkbox53_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(51, hObject, eventdata, handles);
function enablecheckboxes(hObject, eventdata, handles)
% set checkbox names
for loopIndex = 1:numel(handles.s_fieldnames)
set(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'String', handles.s_fieldnames{loopIndex})
set(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'Visible', 'on')
end
function checkboxmanager( number, hObject, eventdata, handles)
if get(hObject,'Value') == 1
handles.selected_structures(number) = 1;
r = randi([0 1]);
g = randi([0 1]);
b = randi([0 1]);
set(hObject, 'ForegroundColor', [r g b]);
if (r*g*b == 1 || (r == 1 && g == 1 && b == 0) || (r == 0 && g == 1 && b == 0) || (r == 0 && g == 1 && b == 1))
set(hObject, 'BackgroundColor', [0 0 0]);
end
else
handles.selected_structures(number) = 0;
set(hObject, 'ForegroundColor', [0 0 0]);
set(hObject, 'BackgroundColor', [1 1 1]);
end
% Update handles structure
guidata(hObject, handles)
% --- Executes on selection change in listbox1.
function listbox1_Callback(hObject, eventdata, handles)
% hObject handle to listbox1 (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 listbox1 contents as cell array
% contents{get(hObject,'Value')} returns selected item from listbox1
% --- Executes during object creation, after setting all properties.
function listbox1_CreateFcn(hObject, eventdata, handles)
% hObject handle to listbox1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: listbox 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 slice = plotDoseAndCT(hObject, eventdata, handles)
struct_sel = lookForEnabledCheckboxes2(hObject, eventdata, handles);
if sum(struct_sel) == 0
colors = [0 0 0];
else
colors = getCheckboxColors(hObject, eventdata, handles);
end
% if handles.slice ~= -1
% shift = (handles.tps_data.ct.zVec(handles.slice)-handles.tps_data.dose.zVec(handles.slice))/(handles.tps_data.ct.zVec(1)-handles.tps_data.ct.zVec(2)); % I NEED MORE ELEGANT SOLUTION!!!
% else
% shift = 0;
% end
% plot ct
if isfield(handles.tps_data, 'ct')
slice = plot_ct(handles.tps_data, handles.s_fieldnames(struct_sel == 1), handles.slice, colors, handles.axes1);
handles.slice = slice;
end
% plot dose
if isfield(handles.tps_data, 'dose')
slice = plot_dose(handles.tps_data, handles.s_fieldnames(struct_sel == 1), handles.slice, colors, handles.axes2);
handles.slice = slice;
end
% plot 3rd axes
if isfield(handles.tps_data, 'dose')
cla(handles.axes3) % clear axes before plotting
%drawnow
contents = get(handles.visualization_popupmenu, 'Value');
switch contents
case 1
struct_sel = find(struct_sel == 1);
for j=1:length(struct_sel)
linecolor = get(eval(['handles.structure' ...
num2str(struct_sel(j)) '_checkbox']), 'ForegroundColor');
%title = handles.s_fieldnames{struct_sel(j)};
% dvh = calc_dvh(handles.tps_data.dose.cube.*handles.tps_data.structures.(handles.s_fieldnames{struct_sel(j)}).indicator_mask);
hold( handles.axes3, 'on');
struct_cube = handles.tps_data.dose.cube.*handles.tps_data.structures.(handles.s_fieldnames{struct_sel(j)}).indicator_mask;
plot_dvh(struct_cube, linecolor, '', handles.axes3);
end
hold( handles.axes3, 'off');
case 2
plot_structure_dose(handles.tps_data, handles.s_fieldnames(struct_sel == 1), handles.slice, colors, handles.axes3);
case 3
plot_structure_gradient(handles.tps_data, handles.s_fieldnames(struct_sel == 1), handles.slice, colors, handles.axes3);
end
end
guidata(hObject, handles)
function setTestResult(handles,flag)
if flag
set(handles.analysisresult_text,'String', 'Test passed!');
set(handles.analysisresult_text,'ForegroundColor', [0 0.5 0]);
else
set(handles.analysisresult_text,'String', 'Test failed!');
set(handles.analysisresult_text,'ForegroundColor', [1 0 0]);
end
function index = lookForEnabledCheckboxes(hObject, eventdata, handles)
% set checkbox names
for loopIndex = 1:numel(handles.s_fieldnames)
value = get(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'Value');
if value
index = loopIndex;
end
end
function index = lookForEnabledCheckboxes2(hObject, eventdata, handles)
% set checkbox names
index = zeros(numel(handles.s_fieldnames),1);
for loopIndex = 1:numel(handles.s_fieldnames)
value = get(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'Value');
if value
index(loopIndex) = 1;
end
end
function colors = getCheckboxColors(hObject, eventdata, handles)
% set checkbox names
%colors = zeros(numel(handles.s_fieldnames)-1,3);
index = 1;
for loopIndex = 1:numel(handles.s_fieldnames)
value = get(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'Value');
if value
colors(index,:) = get(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'ForegroundColor');
index = index+1;
end
end
function clearCheckboxes(hObject, eventdata, handles)
% set checkbox names
for loopIndex = 1:numel(handles.s_fieldnames)
set(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'Value', 0);
set(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'ForegroundColor', [0 0 0]);
set(eval(['handles.structure' num2str(loopIndex) '_checkbox']), 'BackgroundColor', [1 1 1]);
end
handles.selected_structures = handles.selected_structures * 0;
guidata(hObject, handles);
% --- Executes on button press in next_button.
function next_button_Callback(hObject, eventdata, handles)
% hObject handle to next_button (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
guidata(hObject, handles);
uiresume(gcbf);
% --- Executes on selection change in visualization_popupmenu.
function visualization_popupmenu_Callback(hObject, eventdata, handles)
% hObject handle to visualization_popupmenu (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 visualization_popupmenu contents as cell array
% contents{get(hObject,'Value')} returns selected item from visualization_popupmenu
% --- Executes during object creation, after setting all properties.
function visualization_popupmenu_CreateFcn(hObject, eventdata, handles)
% hObject handle to visualization_popupmenu (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
% --- Executes when selected object is changed in uipanel3.
function uipanel3_SelectionChangeFcn(hObject, eventdata, handles)
% hObject handle to the selected object in uipanel3
% eventdata structure with the following fields (see UIBUTTONGROUP)
% EventName: string 'SelectionChanged' (read only)
% OldValue: handle of the previously selected object or empty if none was selected
% NewValue: handle of the currently selected object
% handles structure with handles and user data (see GUIDATA)
%disp(get(get(handles.uipanel3,'SelectedObject'),'String'));
% --- Executes on button press in reset_button.
function reset_button_Callback(hObject, eventdata, handles)
% hObject handle to reset_button (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
OrigDlgH = ancestor(hObject, 'figure');
delete(OrigDlgH);
start();
% --- Executes on button press in calcFeatures.
function calcFeatures_Callback(hObject, eventdata, handles)
organ = handles.organ.String(handles.organ.Value, :);
if get(handles.batch_tick, 'Value') == 0
% show the hourglass during computation
oldpointer = get(handles.figure1, 'pointer');
set(handles.figure1, 'pointer', 'watch')
drawnow;
if isfield(handles, 'tps_data')
features = calc_features(handles.tps_data, organ);
features_table = cell2table(features(2:end, :));
features_table.Properties.VariableNames = features(1, :);
writetable(features_table, fullfile(handles.output_directory, 'features.csv'));
else
errordlg('Load tps.mat file first!','tps.mat error');
end
set(handles.figure1, 'pointer', oldpointer);
drawnow;
else
h = warndlg('DicomToolboxMatlab will load features from the csv files if found in patients'' directories. If you want to calculate all features from scratch, delete the csv files first!');
uiwait(h);
input_dir = uigetdir(handles.defaultdatapath, 'Choose Input Directory...');
showGUI = true;
recalcFeatures = false;
calc_features_batch( input_dir, organ, recalcFeatures, showGUI);
end
% --- Executes on button press in select_all_button.
function select_all_button_Callback(hObject, eventdata, handles)
% hObject handle to select_all_button (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in select_none_button.
function select_none_button_Callback(hObject, eventdata, handles)
% hObject handle to select_none_button (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in newloader_button.
function newloader_button_Callback(hObject, eventdata, handles)
% hObject handle to newloader_button (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
if get(handles.batch_tick, 'Value') == 0
dicom_import_gui
else
dicom_import_batch_gui
end
% --- Executes on button press in batch_tick.
function batch_tick_Callback(hObject, eventdata, handles)
% hObject handle to batch_tick (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 batch_tick
% --- Executes on button press in structure1_checkbox.
function structure1_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure1_checkbox (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 structure1_checkbox
checkboxmanager(1, hObject, eventdata, handles);
% --- Executes on button press in structure2_checkbox.
function structure2_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure2_checkbox (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 structure2_checkbox
checkboxmanager(2, hObject, eventdata, handles);
% --- Executes on button press in structure3_checkbox.
function structure3_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure3_checkbox (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 structure3_checkbox
checkboxmanager(3, hObject, eventdata, handles);
% --- Executes on button press in structure4_checkbox.
function structure4_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure4_checkbox (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 structure4_checkbox
checkboxmanager(4, hObject, eventdata, handles);
% --- Executes on button press in structure5_checkbox.
function structure5_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure5_checkbox (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 structure5_checkbox
checkboxmanager(5, hObject, eventdata, handles);
% --- Executes on button press in structure6_checkbox.
function structure6_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure6_checkbox (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 structure6_checkbox
checkboxmanager(6, hObject, eventdata, handles);
% --- Executes on button press in structure7_checkbox.
function structure7_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure7_checkbox (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 structure7_checkbox
checkboxmanager(7, hObject, eventdata, handles);
% --- Executes on button press in structure8_checkbox.
function structure8_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure8_checkbox (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 structure8_checkbox
checkboxmanager(8, hObject, eventdata, handles);
% --- Executes on button press in structure9_checkbox.
function structure9_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure9_checkbox (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 structure9_checkbox
checkboxmanager(9, hObject, eventdata, handles);
% --- Executes on button press in structure10_checkbox.
function structure10_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure10_checkbox (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 structure10_checkbox
checkboxmanager(10, hObject, eventdata, handles);
% --- Executes on button press in structure11_checkbox.
function structure11_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure11_checkbox (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 structure11_checkbox
checkboxmanager(11, hObject, eventdata, handles);
% --- Executes on button press in structure12_checkbox.
function structure12_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure12_checkbox (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 structure12_checkbox
checkboxmanager(12, hObject, eventdata, handles);
% --- Executes on button press in structure13_checkbox.
function structure13_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure13_checkbox (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 structure13_checkbox
checkboxmanager(13, hObject, eventdata, handles);
% --- Executes on button press in structure14_checkbox.
function structure14_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure14_checkbox (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 structure14_checkbox
checkboxmanager(14, hObject, eventdata, handles);
% --- Executes on button press in structure15_checkbox.
function structure15_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure15_checkbox (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 structure15_checkbox
checkboxmanager(15, hObject, eventdata, handles);
% --- Executes on button press in structure16_checkbox.
function structure16_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure16_checkbox (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 structure16_checkbox
checkboxmanager(16, hObject, eventdata, handles);
% --- Executes on button press in structure17_checkbox.
function structure17_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure17_checkbox (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 structure17_checkbox
checkboxmanager(17, hObject, eventdata, handles);
% --- Executes on button press in structure18_checkbox.
function structure18_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure18_checkbox (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 structure18_checkbox
checkboxmanager(18, hObject, eventdata, handles);
% --- Executes on button press in structure19_checkbox.
function structure19_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure19_checkbox (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 structure19_checkbox
checkboxmanager(19, hObject, eventdata, handles);
% --- Executes on button press in structure20_checkbox.
function structure20_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure20_checkbox (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 structure20_checkbox
checkboxmanager(20, hObject, eventdata, handles);
% --- Executes on button press in structure21_checkbox.
function structure21_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure21_checkbox (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 structure21_checkbox
checkboxmanager(21, hObject, eventdata, handles);
% --- Executes on button press in structure22_checkbox.
function structure22_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure22_checkbox (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 structure22_checkbox
checkboxmanager(22, hObject, eventdata, handles);
% --- Executes on button press in structure23_checkbox.
function structure23_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure23_checkbox (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 structure23_checkbox
checkboxmanager(23, hObject, eventdata, handles);
% --- Executes on button press in structure24_checkbox.
function structure24_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure24_checkbox (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 structure24_checkbox
checkboxmanager(24, hObject, eventdata, handles);
% --- Executes on button press in structure25_checkbox.
function structure25_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure25_checkbox (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 structure25_checkbox
checkboxmanager(25, hObject, eventdata, handles);
% --- Executes on button press in structure26_checkbox.
function structure26_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure26_checkbox (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 structure26_checkbox
checkboxmanager(26, hObject, eventdata, handles);
% --- Executes on button press in structure27_checkbox.
function structure27_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure27_checkbox (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 structure27_checkbox
checkboxmanager(27, hObject, eventdata, handles);
% --- Executes on button press in structure28_checkbox.
function structure28_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure28_checkbox (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 structure28_checkbox
checkboxmanager(28, hObject, eventdata, handles);
% --- Executes on button press in structure29_checkbox.
function structure29_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure29_checkbox (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 structure29_checkbox
checkboxmanager(29, hObject, eventdata, handles);
% --- Executes on button press in structure30_checkbox.
function structure30_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure30_checkbox (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 structure30_checkbox
checkboxmanager(30, hObject, eventdata, handles);
% --- Executes on button press in structure31_checkbox.
function structure31_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure31_checkbox (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 structure31_checkbox
checkboxmanager(31, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure32_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(32, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure33_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(33, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure34_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(34, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure35_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(35, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure36_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(36, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure37_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(37, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure38_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(38, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure39_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(39, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure40_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(40, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure41_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(41, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure42_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(42, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure43_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(43, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure44_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(44, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure45_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(45, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure46_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(46, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure47_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(47, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure48_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(48, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure49_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(49, hObject, eventdata, handles);
% --- Executes on button press in structure32_checkbox.
function structure50_checkbox_Callback(hObject, eventdata, handles)
% hObject handle to structure32_checkbox (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 structure32_checkbox
checkboxmanager(50, hObject, eventdata, handles);
% --- Executes on selection change in organ.
function organ_Callback(hObject, eventdata, handles)
% hObject handle to organ (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 organ contents as cell array
% contents{get(hObject,'Value')} returns selected item from organ
% --- Executes during object creation, after setting all properties.
function organ_CreateFcn(hObject, eventdata, handles)
% hObject handle to organ (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