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{:});"

4 次查看(过去 30 天)
both the commands work in gray scale image but it does not work in binarized image...Any idea how to achieve this?

采纳的回答

Amy
Amy 2017-12-12
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).

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Feature Detection and Extraction 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by