Hello people I'm beginner in Matlab, I need some help.
I have a project to do. I need create a picture HDR but I don't know how to do it..
I need join 3 pictures and create one HDR..
Can you help me please?
Fábio

 Réponse acceptée

Thomas Koelen
Thomas Koelen le 29 Avr 2015

1 vote

If you have the image processing toolbox you can use the following commands:
im1=imread('image1.tiff')
im2=imread('image2.tiff')
im3=imread('image3.tiff')
HDR = makehdr(im1,im2,im3)

7 commentaires

Fábio Vieira
Fábio Vieira le 29 Avr 2015
Hello Thomas, thank you for your answer...
Can you explain what is "Processing toolbox"?
It's a software package you have to buy: http://www.mathworks.com/products/image/. It may already be included if you bought certain licenses, like the student license. Type "ver" on the command line to check for it, or run this code in your script:
% Check that user has the Image Processing Toolbox installed.
hasIPT = license('test', 'image_toolbox');
if ~hasIPT
% User does not have the toolbox installed.
message = sprintf('Sorry, but you do not seem to have the Image Processing Toolbox.\nDo you want to try to continue anyway?');
reply = questdlg(message, 'Toolbox missing', 'Yes', 'No', 'Yes');
if strcmpi(reply, 'No')
% User said No, so exit.
return;
end
end
Fábio Vieira
Fábio Vieira le 29 Avr 2015
Humm.. if I don't have processing toolbox how I can create a picture HDR?
I'm a little bit worried with this because I don't understand Matlab..
Thank you again!
Thomas Koelen
Thomas Koelen le 29 Avr 2015
Have a look at this project, browse through their code! http://cybertron.cg.tu-berlin.de/eitz/hdr/
If you are really new to Matlab I suggest you learn some basics first.
Fábio Vieira
Fábio Vieira le 29 Avr 2015
Thank you a lot Thomas! I will watch that page and take some information to make the project.. If I have questions can I ask you? Can you give your email please? Fábio Vieira
Thomas Koelen
Thomas Koelen le 30 Avr 2015

Connectez-vous pour commenter.

Plus de réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by