merge image using matlab
古いコメントを表示
hi, if i have 3 image can i extract one color channel from image (red channel from image 1, green channel from image 2, blue channel from image 3) and merge them in new image?
採用された回答
その他の回答 (1 件)
I1 = imread('image1') ;
I2 = imread('image2') ;
I3 = imread('image3') ;
R = I1(:,:,1) ;
[nx,ny] = size(R) ;
G = imresize(I2(:,:,2),[nx,ny]) ; % in case if the dimensions are different
B = imresize(I3(:,:,3),[nx,ny]) ;
I = cat(3,R,G,B) ;
imshow(I)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!