Why insertMarker or plot command is not working in binary image?? getting error as "Error in insertMarker (line 73) validateAn​dParseInpu​ts(I, position, varargin{:});"

 Akzeptierte Antwort

Prithwish,
In the documentation for 'insertMarker', it says that the function expects the image input to be one of these types: uint8, uint16, int16, double, or single. A binary image is stored as a logical array, so is not a valid input.
You can always convert your binary image into one of the supported data types and use that as input to the 'insertMarker' function (using the 'single' function, for example). If you wanted to, you could also convert the output back into a binary image afterwards (with the 'logical' function).

Weitere Antworten (0)

Kategorien

Mehr zu Deep Learning Toolbox finden Sie in Hilfe-Center und File Exchange

Gefragt:

am 7 Dez. 2017

Beantwortet:

Amy
am 12 Dez. 2017

Community Treasure Hunt

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

Start Hunting!

Translated by