Mesh plot threshold in MatLab

I am using an algorithm to determine a threshold for image analysis of nuclei in MATLAB. This algorithm measures all the pixel intensities within a nucleus and calculates a value that is used as a cutoff to distinguish background noise from foreground. I know how to apply this value to the image of the nuclei to see what effect the cutoff has, but I would like to apply the threshold to a mesh plot. By chance does anyone know how to do this I cannot post images yet but I have added example code of my image analysis

example image of nucleus

% First I load image
i = imread('nucleus.tif')
% I calculate the value of the threshold using my algorithm using my function
ci99 = getCI99('nucleus.tif')
% say for example that the calculated value is 100. I would apply this threshold to the image of the nucleus with the following command
imshow(picture , [ 100, inf]) % The resulting image only shows pixels at and above the calculated threshold.

I use the following code to make a mesh plot of a nucleus

% Mesh Plot

I am trying to apply the cutoff to the mesh plot analogous to the way I apply the threshold to the original image.

I would really appreciate any help.



check out the Matlab clim function

you should be able to do this with:

clim([min_threshold max_threshold]);

you can also access particular plots by holding on to axis handles (kinda like pointers)

fig1 = figure;
ax1  = mesh(xx,yy,i);

fig2 = figure;
ax2  = imshow(i);

set(ax1, 'clim', [100, inf]);

holding on to the axis handles lets you set parameters on any plot at any time, rather than only dealing with the last one you were working with.

Last note: try the image function rather than imshow. its not exactly the same thing, but you might find that you don't need to use the image processing toolbox at all.

Need Your Help

How to find time difference even if first time is more than time() with sql?

php sql timestamp

I'm working on a little advertisement system for my project. Is it possible to find the time difference if one time is more than the current time, using the TIMESTAMPDIFF function?

Confused about “the multi-part identifier could not be bound” error in SQL 2008

sql sql-server views

I created a view that gets data from several tables, whenI go to compile it I keep getting the "The multi-part identifier could not be bound" error which has me completely stumped as to why. Below ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.