MATLAB: Pixel dimension

digital image processing

Can someone please tell me how to make the two images of same dimension to fuse it in matlab??One image has 148*114*3 dimension and the other has 148*114 dimension.

Best Answer

Suppose the 148*114 image is named image2. Then
image2_3d = cat(3, image2, image2, image2);
Then image2_3d will be the same dimension as your 148 * 114 * 3 image.
Note: given your description of what you need to do, I think you will find that this does not do anything useful for you, but it will at least give you two images "of the same dimension" that you can use to get to the point of understanding yourself why that isn't what you need.