Saving high passed images in matlab

28 views
Skip to first unread message

nemo

unread,
Sep 15, 2012, 4:11:18 PM9/15/12
to cs498-...@googlegroups.com
I noticed when saving high-passed images (original - gaussian filtered), some details are lost when using imwrite(im, 'im.jpg'). It looks like the overal contrast of the picture is much worse than displaying in matlab using imagesc. Below first is imagesc in matlab, second is imwrite:


Hoiem, Derek W

unread,
Sep 15, 2012, 4:28:08 PM9/15/12
to cs498-...@googlegroups.com

You can use mat2gray to change the scale range so that when you save you will see the whole range…

 

Derek

--
 
 

nemo

unread,
Sep 15, 2012, 4:59:36 PM9/15/12
to cs498-...@googlegroups.com
Thanks, that solved it. Also I realized the images are black since I didn't convert them to double.
Reply all
Reply to author
Forward
0 new messages