Matz's Ruby Interpreter or Ruby MRI (also called CRuby) is the reference implementation of the Ruby programming language named after Ruby creator Yukihiro Matsumoto ("Matz"). Until the specification of the Ruby language in 2011, the MRI implementation was considered the de facto reference.
Questions tagged [mri]
103 questions
0
votes
1 answer
Combining different feature vectors for, SVM training for MRI classification
I've been currently working on my FYP on Brain tumor classification.Extracted features using wavelet transform ,glcm ,polynomial transform etc.
IS IT RIGHT TO APPEND THESE FEATURE VECTORS (columnwise) for training? like combinations of these…
0
votes
0 answers
Resizing .nii file in Python
I am trying to resize Nii files so that my program takes less computational resources, I want to rescale them from (240,240,155) to (120,120,155). I have tried using nilearn.image.resample_img module to do so however as it is seen the image below…

Dabhi
- 23
- 3
0
votes
1 answer
FLIRT registration via nipype doesn't run (google colab)
I am trying to perform FLIRT registration vi nipype package in Google Colab, but I don't know how to fix it. If someone knows how to fix it, please help me.
!pip install nipype
from nipype.interfaces import fsl
from nipype.testing import…

Isabella
- 11
- 4
0
votes
1 answer
how to extract 1 slice of a 3d image tensor?
lets say I have a 64x64x64 3D image.
I also have a vector x which is length 64.
I want to take the 'argmax(x)' layer like so:
2d_image = 3d_image[:,argmax(x),:]
more precise (for tensorsflow):
def extract_slice(x,3d_image):
slice_index =…

Adar Cohen
- 158
- 1
- 13
0
votes
1 answer
MRI Segmentation Error related to input shape dimension (Input 0 of layer conv2d is incompatible with the layer)
I'm trying to perform some MRI segmentation using a deep learning model, but I'm getting a error related to the dimension of the image, not sure why.
import numpy as np
import nibabel as nib
import matplotlib.pyplot as plt
img =…

Isabella
- 11
- 4
0
votes
1 answer
Building 3D CNN for binary classification of greyscale MRI data, Data dimensionality issue when attempting model.fit
I'm trying to build a 3D CNN for binary classification of greyscale MRI data. I'm new to this, so don't pull any punches, I'm here to learn! I have a subsample of 20 3D files, with dimensions (189, 233, 197). I add a a dimension to act as the…

John Newberry
- 13
- 3
0
votes
1 answer
Image Classification, 3D black and white MRI data. Data Dimensionality Issues
I'm trying to build a CNN that can classify 3D MRI files as being one of two classes, basically with disease or without. I've done a lot of googling and it seems like the consensus is that a 2D CNN would be best because the data is black and white…

John Newberry
- 13
- 3
0
votes
1 answer
3D array saved as data frame in csv is not successful
I have some MRI data and I am trying to put the processed 3D images as arrays with corresponding labels to a data frame. Then save it in CSV file.
I made each of the 3D images to a 161616 array.
However, after saving the CSV file, the arrays did not…

Jen
- 3
- 1
0
votes
1 answer
Flirt registration tool for brain MRI gives incredible results
I have a brain MRI that contains slices from this angulation:
I was playing with the registration tool for brain MRI called Flirt. The code is available also for Python
I tried to use as reference MRI a brain MRI taken from another patient and with…

Paolorossi
- 57
- 5
0
votes
0 answers
How to align Brain MRIs
I have a dataset of nifti files about Brain MRI performed to different patients and i've loaded them in Python using a library called Nibabel.
Here a slice of an MRI taken from my dataset:
As you can see this head is not perfectly aligned (in this…

AleWolf
- 133
- 1
- 6
0
votes
0 answers
Error using itkNormalizedMutualInformationHistogramImageToImageMetric
I am trying to use the metric of Normalized Mutual Information for rigid registration on 3D MR images. Here is a part of my code:
#include “itkImageRegistrationMethodv4.h”
#include “itkVersorRigid3DTransform.h”
#include…

f. c.
- 1,095
- 11
- 26
0
votes
1 answer
how to get channel=3 from MRI slices?
I'm trying to use VGG, but input request 3 channels but my imput_shape'channel=1
I use nibabel to slice the MRI (nii)
ValueError: The input must have 3 channels; got input_shape=(256, 256, 1)
Here is my code about MRI slices.
code
images = []
…

张鉷涛
- 1
- 1
0
votes
3 answers
Extracting 3D patches from 3D images in both overlapping and nonoverlapping process and recovering the image back
I am working with 172x220x156 shaped 3D images. To feed the image into the network for output I need to extract patches of size 32x32x32 from the image and add those back to get the image again.
Since my image dimension are not multiples of patch…

banikr
- 63
- 1
- 9
0
votes
1 answer
How to use ImageDataGenerator with nii/NIFTI files using ADNI dataset
I'm trying to load my data using keras' ImageDataGenerator class, but I am having trouble since the image files are not a standard jpeg/png image file but rather nii.gz files. I found this github repo…

David Kang
- 55
- 1
- 6
0
votes
1 answer
Error message using ImageJ MRI Retina Tool ijm
Can someone help me with this? Some images I can measure but some I cannot. Then this error message pops up. I measured all of them using same settings but some I can measure and some I can't.
Here is the my problem I'm having:
If anyone can help…

starbuckjoe
- 1
- 2