how i can get the profile of pixel value in dicom

조회 수: 5 (최근 30일)
Maram Othman
Maram Othman 2021년 10월 8일
댓글: Maram Othman 2021년 11월 25일
hello,
I am trying to plot the pixel value in profile of dicome image, i try the solution mentioned in previuse questions but it not working?
maybe for dicome there is certain code labeling?

채택된 답변

Image Analyst
Image Analyst 2021년 10월 8일
Do you mean dicom? As in from a .DCM image file? Did you try using improfile()?
  댓글 수: 35
Walter Roberson
Walter Roberson 2021년 11월 25일
someValue should be a value that is the border between "background" and signal. At the moment, how do you judge what part of the image is part of the center that you want to measure, as compared to being part of the background that you do not want to measure?
Maram Othman
Maram Othman 2021년 11월 25일
I am considering a region of 400x400 pixel to be included inside the central part that I want to investigate,
for the value in this region I tried to do the mean2 function, but I also tried to do the following,
% for 3 image set I want to study the central od 400x400 pixel, then after the NewValue is rescaled I do:
x1=NewValue_1(400:700,400:700)
x2=NewValue_2(400:700,400:700)
x3=NewValue_3(400:700,400:700)
and for X2 image signal will contribute X3 signal, to find the relative difference of signal contribution,
signal=x2./x3
plot(signal)

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

추가 답변 (1개)

yanqi liu
yanqi liu 2021년 10월 11일
편집: yanqi liu 2021년 10월 18일
clc; clear all; close all;
[X, map] = dicomread('US-PAL-8-10x-echo.dcm');
n = size(X, 4);
D=[];
for i=1:n
I = ind2rgb(X(:,:,:,i), map);
I = rgb2gray(I);
I = double(I);
D(:,:,i)=I;
end
figure; imshow(D(:,:,1));
[cx,cy,c] = improfile(D(:,:,1), [270 380], [130 330]);
hold on; plot(cx, cy, 'r-', 'LineWidth', 2)
figure; plot(c);

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by