how to overlay cropped image on uncropped original image

1 vue (au cours des 30 derniers jours)
eten hyle
eten hyle le 17 Déc 2023
Modifié(e) : Image Analyst le 17 Déc 2023
i cropped only the rectal part of mri images size 256 by 256 from pelvic mri images(size 512 by512) and train the unet model,after i want to display the segmented image by overlaying on the original pelvic image.here i want to put the small cropped and segmented image on original uncropped image that i didn't input to the model.
i tried the code below but its output is not what i want,i want the overlay to happen only at rectal part,
% Read the original image
originalImage = imread('20.jpg');
% Read the segmented test image
segmentedTestImage = imread('pixelLabel_20.png');
% % % Create a metal overlay effect using the imfuse function
overlayedImage = imfuse(originalImage, segmentedTestImage, 'blend', 'Scaling', 'joint');
% Overlay the binary mask on the original image
overlayedImage = labeloverlay(originalImage, segmentedTestImage );
% Display the overlayed image
imshow(overlayedImage);
the image is attached below.

Réponses (1)

Image Analyst
Image Analyst le 17 Déc 2023
Modifié(e) : Image Analyst le 17 Déc 2023

Catégories

En savoir plus sur 3-D Volumetric Image Processing dans Help Center et File Exchange

Produits


Version

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by