I have the following code which takes a set DICOM images from a folder, I plotted histogram of one of the image. Here is the result. I want to normalize my histogram from 0 to 1. Can anyone refer to me some tutorial that might help or some starting point how should I start it?
clear all
close all
clc
cd('C:\Users\Usman\Desktop\00cba091fa4ad62cc3200a657aeb957e');
imagefiles = dir('*.dcm');
S=size(imagefiles,1);
im = dicomread(imagefiles(20).name);
imhist(im);