try to upload 122*335 unit 16 *tif image to matlab piv

조회 수: 4 (최근 30일)
sanyogita sanyogita
sanyogita sanyogita 2023년 3월 20일
답변: Aishwarya Shukla 2023년 3월 30일
when I upload 122*335 unit 16 *tif image to matlab piv , it uploaded as zoomed image. Please suggest a way that I could change piv matla matlab window size to my image size

답변 (1개)

Aishwarya Shukla
Aishwarya Shukla 2023년 3월 30일
To change the PIV Matlab window size to match your image size, you can use the figure and imshow functions in Matlab.
First, create a new figure window using the figure function:
figure;
Next, load your TIFF image using the imread function:
img = imread('your_image.tif');
Then, display the image in the figure window using the imshow function and set the 'InitialMagnification' property to 'fit' to ensure that the image is displayed at its actual size:
imshow(img, 'InitialMagnification', 'fit');
This should display the image in a figure window that is the same size as the image itself. If the image is still zoomed in, you can try adjusting the 'InitialMagnification' property to a different value, such as '100%'.
Finally, you can use the PIV Matlab functions to analyze the image in the figure window.

카테고리

Help CenterFile Exchange에서 Fluid Dynamics에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by