PLEASE HELP TO TO CALCULATE UPPER LIMIT WINDOW LEVEL (ULWL)
Mostra commenti meno recenti
Dear All,
I want to calculate the upper limit window level (ULWL) on my set images (as attached). this is draft command I develop.
%% Read main set data
clc
clear all
close all
[spect map]=dicomread('spect128x128');
info = dicominfo('spect128x128');
%gp=info.SliceThickness;
spect=(squeeze(spect));%smooth3
map = hsv(256); % Or whatever colormap you want.
rgbspect = ind2rgb(spect, map); % im is a grayscale or indexed image.
a=t/p;
t = sum(sum(sum(rgbspect))); %should be total sum pixel value of for every slice
p = 130*130; %should be represents the amount of pixels in every slice
u = 50 % constant, for better visual characteristic
ULWL =u*a;
But I failed two things:
1) failed to convert the gray image to RGB image
2) Failed to apply the ULWL formula for all slices.
ANYONE CAN HELP ME.
ALL THE REFERENCES AS PICTURE BELOW.


Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Convert Image Type in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!