필터 지우기
필터 지우기

what can MATLAB do with tif files

조회 수: 12 (최근 30일)
Miraboreasu
Miraboreasu 2023년 8월 12일
답변: Image Analyst 2023년 8월 12일
Hi, I got lots of scan (photo) files as tif. and I read them into the array
```
folder = fileparts(which(mfilename));
tifFiles = dir(fullfile(folder, '*.tif'));
for i = 1:length(tifFiles)
tifFileName = tifFiles(i).name;
tifFilePath = fullfile(folder, tifFileName);
try
tifData = imread(tifFilePath);
disp(['TIFF file ', tifFileName, ' read successfully.']);
catch
disp(['Error reading TIFF file ', tifFileName]);
end
end
```
I want to analyze these photos, for exmaple, I want to give a coordinate to and find one object's coordinate in the photos, what package I should look at?

채택된 답변

Image Analyst
Image Analyst 2023년 8월 12일
It's a generic, general purpose demo of how to threshold an image to find blobs, and then measure things about the blobs, and extract certain blobs based on their areas or diameters.

추가 답변 (2개)

Cris LaPierre
Cris LaPierre 2023년 8월 12일

Walter Roberson
Walter Roberson 2023년 8월 12일
MATLAB can read (most) ordinary TIF files with the imread
But TIF files can be someone complicated so MATLAB also offers the TIFF library, Tiff
There is also geotiffread and the newer georasterinfo and related.
But what you are really asking about is how you can process the file once you have read it in -- and once you have read it in then it is just a numeric array and nothing cares that it was originally a TIFF file.

카테고리

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

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by