Posts

Showing posts with the label MatLab Programming

How To Generate stack of 2D images with Interface [+]

Generate stack of 2D images with Interface [+] [MatLab] close all; clear all; clc; %User Welcoming h1 = 'Hi, TBL Member!'; p1 = 'Choose your input images folder'; choice1 = questdlg({h1 p1},'TBL_Wrinkle','Sure','Cancel','Sure'); switch choice1     case 'Sure'         disp([choice1 ' coming right up.'])         inputFolderDir = uigetdir;         charAdd = '\';         sourceDir = strcat(inputFolderDir,charAdd);         imgInfo = PrepareInfo(sourceDir);         imgNumber = imgInfo.N;         imgWidth = imgInfo.W;         numPixels = zeros(imgNumber);     case 'Cancel'         return end p2 = 'Now choose your output images folder'; choice2 = questdlg(p2,'TBL_Wrinkle','Sure','Cancel','Sure'); switch choice2     case 'Sure'   ...