フィルターのクリア

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

5 ビュー (過去 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 Center および File ExchangeFeature Detection and Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by