how to change color images

2 ビュー (過去 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);
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 件のコメント
KALYAN ACHARJYA
KALYAN ACHARJYA 2021 年 1 月 22 日
Have you tried imregister?
https://in.mathworks.com/help/images/ref/imregister.html
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 日
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.

その他の回答 (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')

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by