image-quality icon indicating copy to clipboard operation
image-quality copied to clipboard

Compute BRISQUE score on diffusion MRI 4D data

Open rosella1234 opened this issue 3 years ago • 0 comments

I would like to know how to compute BRISQUE score on diffusion MRI 4-D data, since the default function works on 2D images.

Moreover, I wanted to make sure I am applying the commands correctly, since I obtain very high (beyond 100) BRISQUE scores. Diffusion MRI data are 4-D grayscale images in nifti (.nii.gz) format.

Here is the code I use -for now on a single slice of a diffusion MRI volume in order to have a 2-D image:

      # select slice and diffusion volume to have 2-D images
         orig = data[:, :, sli, vol]
        
         matplotlib.image.imsave('blur1_rev.png', orig)
         input_image1=img_as_float(io.imread('blur1_rev.png',as_gray=True))
         brisque.score(input_image1)

thank you in advance , Rosella

rosella1234 avatar Feb 15 '23 14:02 rosella1234