[#7762] Error Stops Exectution: MATLAB:index_assign_element_count_mismatch

Please log in

State: more information
Closed
Date:
2014-12-17 16:21
Priority: more information
3
Submitted By:
Joshua Lee (nimzodisaster)
Assigned To: more information
Nobody (None)
Hardware: 
PC
Product: 
None
Operating System: 
Linux
Component: 
None
Version: 
v1.1
Severity: 
critical
Summary: more information
Error Stops Exectution: MATLAB:index_assign_element_count_mismatch

Detailed description

Dear Authors,

I've very interested in trying out your method. However, execution is halting with an error.

My command:
./run_hallucination_v13b.sh isonew.nii,p1edit.nii tt.nii regression 5E4 100 0.01 3x3x3 24 0 yes 420,350 v_synth_t2.nii ~/MCR/bin/glnxa64/v81

Code executes until some Slice (not always same slice)

e.g.
...
Slice 53 : number of patches = 49952.
Generating dictionaries..Finding nearest neighbors..Hallucinating..CVX failed !! count = 29199.
Error using image_hallucination_v13b>(parfor body) (line 823)
In an assignment A(I) = B, the number of elements in B and I must be the same.

Error in image_hallucination_v13b (line 778)
Error in run_hallucination_v13b (line 191)
Caused by:
In an assignment A(I) = B, the number of elements in B and I must be the same.
MATLAB:index_assign_element_count_mismatch


Thank you!
Also is this code compiled, or can I see the code?

Josh

Response

Message

Date: 2015-01-05 21:45
Sender: Snehashis Roy

The WM peak intensity should not be the max intensity. It must be from the WM region.

If your images are skull-stripped and inhomogeneity corrected, then you can use 0. The WM peak intensity will automatically be figured out by a KDE on the histogram.


Date: 2015-01-05 21:39
Sender: Snehashis Roy

You command should be this,
./run_hallucination_v13b.sh isonew.nii,p1edit.nii tt.nii regression 5E4 100 0.01 3x3x3 24 0 yes 420 350 v_synth_t2.nii ~/MCR/bin/glnxa64/v81

The WM peaks of atlas and subject should be separated by space.


Date: 2014-12-19 23:09
Sender: Joshua Lee

Thanks for you help, I appreciate it.
As you say, once I adjusted the WM peak parameters using the max intensity of each atlas image the algorithm completed without error. Is that the correct procedure? Or do I need to ensure my peak intensity is from WM, not from skull regions??

Q2: Is 1 atlas pair usually sufficient for good results?
Q3: Is there a way to save the training to use later on new data, or must the training occur again the next time I employ the tool?

Thanks,

FYI: In my first test case, the orientation of the output image changed. I am re-running with a larger set of data and will update if orientation remains an issue.

Thanks again,
Joshua


Date: 2014-12-19 04:31
Sender: aaron_carass

Josh,
This is probably happening because of an error with the WM Peak normalization. Can you post the full output ?

Thanks,
Aaron

Attached Files:

Name Download
No Files Currently Attached

Changes:

Field Old Value Date By
status_idOpen2015-01-21 02:54aaron_carass
New Message2015-01-05 21:45snehashis
New Message2015-01-05 21:39snehashis
New Message2014-12-19 23:09nimzodisaster
New Message2014-12-19 04:31aaron_carass