MATLAB Answers

how to apply clahe on multiple frames

3 views (last 30 days)
leena on 8 Jun 2018
Commented: leena on 8 Jun 2018
I had a nifti file and read it. I need to apply clahe algorithm on this using adaphisteg. How to apply it in each frames
ni = niftiinfo('brain.nii');
V = niftiread(info);

Answers (2)

leena on 8 Jun 2018
Edited: Walter Roberson on 8 Jun 2018
I = imread('football.jpg');
I1= I(:,:,1); % Red channel
I2= I(:,:,2); % Red channel
I3= I(:,:,3); % Red channel
I1 = adapthisteq(I1,'ClipLimit',0.1);
I2 = adapthisteq(I2,'ClipLimit',0.1);
I3 = adapthisteq(I3,'ClipLimit',0.1);
I4= cat(3,I1,I2,I3);
Is this code correct

Walter Roberson
Walter Roberson on 8 Jun 2018
  1 Comment
leena on 8 Jun 2018
sir, my image is nifti. It contain 39 slices. But i think i need to apply some transformation
info = niftiinfo('Subject01.nii');
Error using affine3d/set.T (line 340)
The final column of an affine transformation matrix must
consist of zeroes, except for a one in the last row.
Error in affine3d (line 117)
self.T = A;
Error in images.internal.nifti.niftiImage/getXForm (line
xform = affine3d([R zeros(3,1); T 1]');
Error in images.internal.nifti.niftiImage/simplifyStruct
(line 162)
[XformName, Xform] = self.getXForm();
Error in niftiinfo (line 50)
simpleStruct = NV.simplifyStruct();

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!