Why do I get the error message with "more non-singleton rhs dimensions"?
Afficher commentaires plus anciens
So I have this loop that works very well and fills comp with differences between images BW_vtk and BW_groundtruth. They are both 448x448x80 logical.
for k = 1:size(BW_vtk,3)
comp(:,:,k) = imfuse(BW_vtk(:,:,k), BW_groundtruth(:,:,k),'diff');
end
If I change it to this:
for k = 1:size(BW_vtk,3)
comp(:,:,k) = imfuse(BW_vtk(:,:,k), BW_groundtruth(:,:,k),'falsecolor');
end
I get the error message: Assignment has more non-singleton rhs dimensions than non-singleton subscripts
I don't understand why. It would be much nicer in falscolor. How can I fix it?
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Creating and Concatenating Matrices dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!