Is it possible to see the underlying implementation of built in functions of matlab?

Posted by user198729 on Stack Overflow See other posts from Stack Overflow or by user198729
Published on 2010-04-06T15:42:16Z Indexed on 2010/04/06 16:03 UTC
Read the original article Hit count: 172

Filed under:

I'm using this example code to grayscale an image,but the result is not right:

I = imread('coins.png');
level = graythresh(I);
BW = im2bw(I,level);
imshow(BW)

Where to see how graythresh is actually implemented?

BTW,is there a reason for using matlab feels so alike with python?

Or is it known that graythresh doesn't work well for images with little spatial resolution(like 62*21 ones)?

© Stack Overflow or respective owner

Related posts about matlab