nitfread not working Matlab2020a Windows 10

4 views (last 30 days)
Is anybody else having trouble with the nitf functions in Matlab 2020a? Nothing seems to be working correctly, even with standard data sets for testing.
  6 Comments
Kojiro Saito
Kojiro Saito on 19 Aug 2020
@Shane
What your testing.m looks like? We need how you call nitfread function in your cusom codes.
Shane Sullivan
Shane Sullivan on 20 Aug 2020
It is literally an empty script that just has
ntftest = nitfread('FileName.ntf'); %Where filename is the correct file name, just removed long filename from here

Sign in to comment.

Accepted Answer

Shane Sullivan
Shane Sullivan on 20 Aug 2020
I solved the issue. I edited the Mathworks .m file @ 'C:\Program Files\MATLAB\R2020a\toolbox\images\iptformats\nitfinfo.m
And replaced line 255 with (cast to unit64), hopefully Mathworks can fix this in the next update for everyone.
%out = out + sscanf(in(ndigits - i + 1), '%d') * uint64(10)^(i - 1);
out = out + uint64(sscanf(in(ndigits - i + 1), '%d')) * uint64(10)^(i - 1);

More Answers (0)

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!