how to change color images

2 visualizaciones (últimos 30 días)
mohd akmal masud
mohd akmal masud el 21 de En. de 2021
Editada: yanqi liu el 1 de Feb. de 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 comentarios
KALYAN ACHARJYA
KALYAN ACHARJYA el 22 de En. de 2021
Have you tried imregister?
https://in.mathworks.com/help/images/ref/imregister.html
mohd akmal masud
mohd akmal masud el 22 de En. de 2021
not yet, i will try. then let you know

Iniciar sesión para comentar.

Respuesta aceptada

Gaurav Garg
Gaurav Garg el 25 de En. de 2021
Hi,
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.

Más respuestas (1)

yanqi liu
yanqi liu el 1 de Feb. de 2021
Editada: yanqi liu el 1 de Feb. de 2021
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')

Categorías

Más información sobre Image Processing Toolbox en Help Center y File Exchange.

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by