imrotate3 gives me just zeros with 'linear'
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
For imrotate3() the doc says:
"'linear' Trilinear interpolation. Trilinear interpolation is the default method for numeric and logical images."
Now if I have a 3D mask of zeros and ones... let's call it BW and it is of type logical, and I use
BW2 = imrotate3(BW,45,[0 0 1],'linear','crop');
Then BW2 is all zeros.
If I convert to, say, double or single, it works as expected.
Or if I use 'nearest' instead of 'linear', it works with logical.
0 commentaires
Réponse acceptée
Jan
le 7 Juin 2022
Modifié(e) : Jan
le 7 Juin 2022
I cannot confirm this, but it is even stranger:
BW = rand(5, 5, 5) > 0.5;
BW2 = imrotate3(BW, 45, [0, 1, 0], 'linear', 'crop');
I;
BW2-BW3 assume this is worth to send a bug report to MathWorks. You've found the bug, so do you want to use the "Contact Us" link on the bottom of this page and the "Bug Report" on the following page?
3 commentaires
DGM
le 10 Juin 2022
Modifié(e) : DGM
le 10 Juin 2022
If it was in R2019b, I'm going to guess it was present when imrotate3() was released -- R2017a. The IPT release notes don't mention any changes to it until R2020a, and there are no bug reports. Then again, the release notes aren't comprehensive and there are plenty of significant bugs that never get put in the publicly listed bug reports.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!