I am trying to remove the black background created when using imwarp and read that it can be done when exporting the images. the error I get is:
Error using writetif>parse_param_value_pairs (line 161)
'TransparentColor' is not a recognized parameter. For a list of valid name-value pair arguments, see the documentation for this function.
However when using
doc imwrite
it exist as a Name-Value pair argument (imwrite) with the example 'TransparentColor', 20. So therefore I added 20 jut to try it out (black might be another colour).
This is part of the code I am trying to get to work, where movingReg is a uint8 object. Why is it giving me this error?
imwrite(movingReg ,fullfile('C:\Users\X\Documents\Matlab\multiplex\55D-A',string(['moved',num2str(number(num)),'.TIF'])),'TransparentColor',20);
Best Answer