Since you chose adaptive threshold, each one of those is a threshold for that specific pixel location in the image. You can use that directly in imbinarize() or simply do
binaryImage = grayImage < T11; % or > depending on what you want.
What's up with the last value? It's like 10,000 times as big as any of the other values. So all your values are crammed into a microscopic area near the origin because it has to expand the axes to be able to show your last value of d. Are you sure that's how you want to do it? If that value is not there, it does plot stuff you can see.
Best Answer