Hi, I have a code for the Manual thresholding and I am unable to run the code correctly. I am using two images to do the thresholding. The imorig is the below original image and the im is the below segmented image. I want to do thresholding with the help of two images. this is how i run the code: >> im=imread('5013lt685dapi_segmented.tif'); >> imorig=imread('5013lt685dapi.tif'); >> name='abc'; >> manual_thresh(im,name,imorig); AND THE ERROR I AM FACING IS Error using set Bad property value found. Object Name: image Property Name: 'AlphaData'. Error in manual_thresh>update_plot (line 239) set(h_ax1, 'AlphaData', bw); Error in manual_thresh (line 180) update_plot
Neeta Dsouza answered .
2025-11-20
If you put a breakpoint at line 239
set(h_ax1, 'AlphaData', bw);
you will observe that bw will have the same dimensions as your input image. So if the input image is mxnx3, then bw will be mxnx3 as well.
set(h_ax1, 'AlphaData', bw(:,:,1));
Try this and see what happens.