how to change color images

조회 수: 3(최근 30일)
mohd akmal masud
mohd akmal masud 2021년 1월 21일
편집: yanqi liu 2021년 2월 1일
Hi all, i try to fuse between two image.
my coding as below, and my picture as attached.
B = dicomread('TRANSA001_CT025.dcm');
A = dicomread('PETWB001_PT025.dcm');
scale = 512/256
C = imresize(B,scale);
My question is, how to change my color for C and B? i want different color for both. so that i easy to see which one is C, and which one is B.
Anyone can help me?
  댓글 수: 2
mohd akmal masud
mohd akmal masud 2021년 1월 22일
not yet, i will try. then let you know

댓글을 달려면 로그인하십시오.

채택된 답변

Gaurav Garg
Gaurav Garg 2021년 1월 25일
You can find many similar examples in imfuse, imregister and style transfer.
Though style transfer may not be applicable in your case, but imfuse and imregister provide very similar functionality you want to achieve.

추가 답변(1개)

yanqi liu
yanqi liu 2021년 2월 1일
편집: yanqi liu 2021년 2월 1일
clc; clear all; close all;
B = imread('image B.jpg');
C = imread('image C.jpg');
B = imresize(B,[size(C,1) size(C,2)],'bilinear');
figure; imshow(C)
figure; imshow(B)
figure; imshowpair(C,B,'Scaling','independent','ColorChannels','red-cyan')

Community Treasure Hunt

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

Start Hunting!

Translated by