IMread issue with image stack

9 visualizaciones (últimos 30 días)
JW
JW el 28 de Jul. de 2017
Editada: JW el 28 de Jul. de 2017
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

Respuestas (0)

Categorías

Más información sobre Convert Image Type en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by