도움말 센터도움말 센터
지정된 좌표를 포함하는 스트립(Strip)의 인덱스 번호(Index Number)
stripNumber = computeStrip(t,row)
stripNumber = computeStrip(t,row,plane)
예제
stripNumber = computeStrip(t,row)는 row가 포함된 스트립의 인덱스를 반환합니다. row의 값은 1부터 시작합니다. computeStrip은 범위를 벗어난 좌표값을 이미지의 경계에 고정합니다.
t
row
computeStrip
stripNumber = computeStrip(t,row,plane)은 지정된 plane의 행이 포함된 스트립의 인덱스를 반환합니다.
plane
모두 축소
TIFF 파일의 두 번째 이미지에서 특정 행이 포함된 스트립의 인덱스를 확인합니다.
파일 example.tif에 대한 Tiff 객체를 만든 다음, 이미지 파일 디렉터리를 디렉터리 번호 2로 설정합니다.
example.tif
Tiff
2
t = Tiff('example.tif','r'); setDirectory(t,2)
이미지의 스트립 길이를 가져온 다음, 중간 행을 포함하는 스트립의 인덱스를 가져옵니다.
stripLength = getTag(t,'RowsPerStrip')
stripLength = 100
numRows = getTag(t,'ImageLength'); stripNumber = computeStrip(t,numRows/2)
stripNumber = 4
Tiff 객체를 닫습니다.
close(t);
TIFF 파일을 나타내는 Tiff 객체입니다. Tiff 함수를 사용하여 이 객체를 생성합니다.
행 번호로, 양의 정수로 지정됩니다. row의 값은 1부터 시작합니다.
예: 10
10
데이터형: double
double
평면 번호로, 양의 정수로 지정됩니다. plane의 값은 1부터 시작합니다.
데이터가 개별 평면으로 구성된 경우에만 plane 파라미터를 사용합니다. PlanarConfiguration 태그의 값이 Tiff.PlanarConfiguration.Separate인 경우 데이터가 개별 평면으로 구성됩니다.
PlanarConfiguration
Tiff.PlanarConfiguration.Separate
예: 1
1
이 함수는 LibTIFF C API의 TIFFComputeStrip 함수에 대응합니다. 이 함수를 사용하려면 TIFF 사양과 기술적인 내용을 잘 알고 있어야 합니다. LibTIFF - TIFF Library and Utilities의 문서를 참조하십시오.
TIFFComputeStrip
R2009b에 개발됨
computeTile | Tiff
computeTile
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office