フィルターのクリア

how to remove black background of 3D image?

2 ビュー (過去 30 日間)
Zaitul
Zaitul 2016 年 10 月 14 日
コメント済み: Zaitul 2016 年 10 月 14 日
Hi everyone.i only need that 3D image. how to remove black background? i tried to edit the data of my image but it doesn't really works. thanks in advance.
  1 件のコメント
KSSV
KSSV 2016 年 10 月 14 日
How the data is?

サインインしてコメントする。

回答 (1 件)

jupiter
jupiter 2016 年 10 月 14 日
Please provide the format of the data, if its in the form of an image or grayscale levels.
  1 件のコメント
Zaitul
Zaitul 2016 年 10 月 14 日
here i attached the picture and the code as well. 'stomachgray.tif' is grayscale image
a = imread ('stomachgray.tif');
b = imcrop (a);
mask = zeros(size(b));
mask(100:end-100,100:end-100) = 1;
bw = activecontour(b,mask,1000);
c = im2double(bw); shading flat
d = imgaussfilt3 (c,4);
colormap(copper)
mesh(d.*100)

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by