IMread issue with image stack

Hello,
I am trying to use imread to make matlab arrays of the gray values of an image of mine (stack of tif files). When I try to display a select tiff file in the stack (by using image(image_temp{1,image_number}) ), all I get is a yellow screen. When I try to look over the array of my imread for a select picture whose gray value for a coordinate that I have determined, the values do not match up as well. I was wondering if anyone had advice on this matter.
A side note, when I output the image for values that have a particular threshold value, it appears that the image is rotated 90 degrees to the left, which is not coded. Ultimately, this is what I am seeking to correct while also having the image coordinates match the matlab coordinates.
So to show what code I am using: Make array of the images
for i = 1:total_stacks:total_images
ff = ff+1;
% un-comment to see which frame is being processed
% horzcat('Processing frame # ',num2str(ff))
temp_image = imread(image_name,i+(stack_of_interest-1));
output{ff} = temp_image;
end
Then the output can read:
disp(image_temp{1,36}(729,486)); %%returns some gray value there, not accurate when comparing to actual image on ImageJ

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Convert Image Type 的更多信息

标签

提问:

JW
2017-7-28

编辑:

JW
2017-7-28

Community Treasure Hunt

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

Start Hunting!

Translated by