how to change color images
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
mohd akmal masud
am 21 Jan. 2021
Bearbeitet: yanqi liu
am 1 Feb. 2021
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);
imhowpair(C,B)
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 Kommentare
KALYAN ACHARJYA
am 22 Jan. 2021
Have you tried imregister?
https://in.mathworks.com/help/images/ref/imregister.html
Akzeptierte Antwort
Gaurav Garg
am 25 Jan. 2021
Hi,
Though style transfer may not be applicable in your case, but imfuse and imregister provide very similar functionality you want to achieve.
0 Kommentare
Weitere Antworten (1)
yanqi liu
am 1 Feb. 2021
Bearbeitet: yanqi liu
am 1 Feb. 2021
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/505953/image.png)
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')
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/505948/image.png)
0 Kommentare
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!