how to make image tilt correction by user input

i am developing a semi user interface , in which if i want to introduce a user input in which a popup window should come and asking that ''do you want to tilt the image with yes or no option ? what should i do. if i press yes again one window should open and ask me to put the required angle through which you want to rotate the figure. if i press no. program should proceed as before. i have tried like this but not working . please help me out
if true
% code
dlgTitle = 'Tilt correction?';
% dlgQuestion = 'Do you wish to Tilt the image?';
% choice = questdlg(dlgQuestion,dlgTitle,'Yes','No', 'Yes');
prompt={'Enter a value of \theta (in degrees)'};
name = 'Tilt correction';
defaultans = {'30'};
options.Interpreter = 'tex';
answer = inputdlg(prompt,name,[1 40],defaultans,options);
end

Réponses (0)

Catégories

En savoir plus sur Images dans Centre d'aide et File Exchange

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by