Skip to content

[BUG] expand roi fails #32

Closed
Closed
@Remi-Gau

Description

@Remi-Gau

Is there an existing issue for this?

  • I have searched the existing issues

Expected Behavior

reported by @iqrashahzad14

Using a 4D beta image as data for defining space and a map from neurosynth, createRoi fails to give a ROI.

Minimal code to reproducde

opt.save.roi = true; 
opt.outputDir = pwd;

dataImage = fullfile(pwd, '4D_beta_0.nii');
zMap = fullfile('hMT.nii');

% X Y Z coordinates of right V5 in millimeters
location = [44 -67 0];

sphere.location = location;
sphere.radius = 1; % starting radius
sphere.maxNbVoxels = 200;

specification  = struct('mask1', zMap, ...
                        'mask2', sphere);

mask = createRoi('expand', specification, dataImage, opt.outputDir, opt.save.roi);

Current Behavior

No response

Error message

 Expansion:
 radius: 1.00 mm; roi size: 2 voxels
 radius: 3.00 mm; roi size: 20 voxels
 radius: 5.00 mm; roi size: 70 voxels
 radius: 7.00 mm; roi size: 192 voxels
 radius: 9.00 mm; roi size: 395 voxels
Error using maroi_pointlist (line 61)
Non integer points in voxel space - are points really of type 'real'?

Error in createRoi>saveRoi (line 296)
  roiObject = maroi_pointlist(struct('XYZ', mask.roi.XYZmm, ...

Error in createRoi (line 212)
    outputFile = saveRoi(mask, volumeDefiningImage, outputDir);

Error in MNE (line 26)
mask = createRoi('expand', specification, dataImage, opt.outputDir, opt.save.roi);

Environment

- OS: ?
- Matlab: ?
- SPM: ?

Branch

- branch: master ?
- version CPP ROI: v0.1.0

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions