필터 지우기
필터 지우기

How can I find the overlap between two binary volumes?

조회 수: 13 (최근 30일)
Dalas
Dalas 2013년 7월 19일
I'm trying to compare two volumes consisting of 3D white shapes on a black background using matlab 2013 for windows.
1) I want to know how much they overlap over all. Correct me if I'm wrong but I think I can use the nnz function to do that.
2) I want to know where the volumes do not overlap. I have no clue how to accomplish this.
Any help is appreciated.

채택된 답변

Image Analyst
Image Analyst 2013년 7월 19일
Define "find the overlap". To get the overlap image:
overlapImage = binaryVolume1 & binaryVolume2;
% To count number of pixels
numOverlapPixels = nnz(overlapImage);
  댓글 수: 4
Dalas
Dalas 2013년 7월 19일
I dont need to create the volumes I already have them i just need to analyze them.
I'm looking at mri brain scans by the way just so you have some context of what im working on.
I geuss the volumes arn't actually volumes either their simply stacked 2d "brain slices". We arnt using 3d mr image aquisition. But I think for matlabs purposes its the same as a 3d volume.
Would xor work on 3d arrays?
Dalas
Dalas 2013년 7월 19일
We're ignoring tissue differences and converting the images into a binary image to focus on brain volume at the moment rather than pathology.

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

추가 답변 (0개)

카테고리

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