how can I extract both the Region of Interest and Background of a medical image with tumor so that I can compress the ROI losslessly and the Non-ROI or background using lossy compression and then merge them...??
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Sir , I have a code to extract the ROI(tumor portion) of a medical image...but I also need the background(Non-ROI) so that I can compress the ROI as well as the background separately and then merge them.
grayImage = imread('brain_tumor.png');
figure,imshow(grayImage);
h = imrect;
position = wait(h);
croppedImage = imcrop(grayImage, position);
figure; imshow(croppedImage);
BackGround = imsubtract(grayImage - croppedImage);
figure, imshow(BackGround);
this code is giving an error for imsubtract that matrix dimensions must agree. So I am not getting the background image. But I need the background also, so that I can compress the ROI using lossless compression and the background or Non-ROI using lossy compression and then merge them. Sir kindly help me. Debarpita Chauhduri.
0 comentarios
Respuestas (1)
RKG
el 10 de Nov. de 2018
Hello, I want to work on a similar type of problem. Can you please guide me how can I do this? I have used imfreehand method to segment ROI. Can you please suggest me is this good to use or is there any other better method? Also, Which is the best method to compress ROI part? Thanks in advance.
0 comentarios
Ver también
Categorías
Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!