필터 지우기
필터 지우기

SQRT function doesn't work on uint16 image type

조회 수: 15 (최근 30일)
Imam
Imam 2014년 12월 10일
댓글: Star Strider 2014년 12월 10일
So, my problem is: I have to load an image in png format an represent it as a matrix. I can do it with imread. But as soon as I performed function like sqrt it shows error message:
Undefined function 'sqrt' for input arguments of type 'uint16'
What should I do? Can somebody help?

채택된 답변

Star Strider
Star Strider 2014년 12월 10일
Convert them to the double data type first.
  댓글 수: 2
Imam
Imam 2014년 12월 10일
Ok thanks a lot.
Star Strider
Star Strider 2014년 12월 10일
My pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Convert Image Type에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by