How to overlay 3D mask on 3D volume?

조회 수: 12 (최근 30일)
Wan Faiz
Wan Faiz 2021년 11월 10일
댓글: Jacob Bunyamin 2023년 2월 10일
I have two niftii file, one is for the skull and one is the mask of fracture. How can I overlay the mask on the skull volume? I want to analyse it slice-by-slice of the masked skull for my project
  댓글 수: 2
Kevin Holly
Kevin Holly 2021년 11월 10일
You can load the files using niftiread.
Are the dimensions of the 3D mask the same as the 3D volume and aligned? If so and the mask is binary, you could multiply the volumes together.
Did you want to display a color version of the mask? Could make mask a color image. Then you could display it ontop of original image (T1 sequence?) using the hold function. You could change the AlphaData value to make it transparent.
3D display of mask? You could use isosurface for 3D display and change the FaceAlpha value to make it transparent. You could use the hold function to overlay on top of orthogonal slices of the original image (T1 sequence?).
Jacob Bunyamin
Jacob Bunyamin 2023년 2월 10일
Hi,
I tried to do the first step (multiplying the 3D volume and mask (binary)) using mtimes but it result as Mtimes (*) is not fully supported for integer classes. At least one of the argument must be scalar
I imported the image using niftiread which result in uint8 file (mask) and uint16 file (3D volume).
Could you help solving this problem? Thanks

댓글을 달려면 로그인하십시오.

답변 (1개)

yanqi liu
yanqi liu 2021년 11월 12일
sir,may be use the isosurface,such as

카테고리

Help CenterFile Exchange에서 3-D Volumetric Image Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by