Create picture HDR with Matlab

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

 Accepted Answer

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 Comments

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
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!
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.
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

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!