필터 지우기
필터 지우기

About .tif image processing

조회 수: 8 (최근 30일)
Bob
Bob 2013년 5월 28일
I have servel .tif image(DMSP/OLS data),some of then are acquire by different remote sensor.I want to use one of them(imageA) as a reference and the other were adjusted to match the imageA. I try to use Matlab to read imageA,code as follows : GD1992=imread('path\imageA.tif')
Them I found it's a 3D array. How can I acquire its DN values?

답변 (3개)

Iain
Iain 2013년 5월 28일
I don't know what your imagery is, so telling you how to extract it's DN is not trivial.
Your image is 3x 2D arrays, where each of those 2D arrays is a single colour image (one red, one green, one blue). You can take the average of those three to get "brightness". Maybe brightness is the DN you need. Maybe your "DN" is "red-ness", "blue-ness", "green-ness" ...
  댓글 수: 2
Bob
Bob 2013년 5월 28일
Thx for your quick reply,and more info of the image as follow: ans =
Filename: 'F:\Temp\GuangDongProvience\GD1994.tif'
FileModDate: '28-五月-2013 15:08:07'
FileSize: 3226644
Format: 'tif'
FormatVersion: []
Width: 1280
Height: 840
BitDepth: 24
ColorType: 'truecolor'
FormatSignature: [73 73 42 0]
ByteOrder: 'little-endian'
NewSubFileType: 0
BitsPerSample: [8 8 8]
Compression: 'Uncompressed'
PhotometricInterpretation: 'RGB'
StripOffsets: [105x1 double]
SamplesPerPixel: 3
RowsPerStrip: 8
StripByteCounts: [105x1 double]
XResolution: 96
YResolution: 96
ResolutionUnit: 'Inch'
Colormap: []
PlanarConfiguration: 'Chunky'
TileWidth: []
TileLength: []
TileOffsets: []
TileByteCounts: []
Orientation: 1
FillOrder: 1
GrayResponseUnit: 0.0100
MaxSampleValue: [255 255 255]
MinSampleValue: 0
Thresholding: 1
Offset: 3225608
I have test some of the value ,and I find that iamgeA(x,y,1)=iamgeA(x,y,2)=iamgeA(x,y,3)
So if I can just creat a 2D array to save imageA(x,y,1) to achieve my aim?
Iain
Iain 2013년 5월 28일
two_d = imageA(:,:,1);

댓글을 달려면 로그인하십시오.


Walter Roberson
Walter Roberson 2013년 5월 28일
A 3D array would suggest RGB values.
You might have multiple images in the TIFF file that you can read using imread() and the 'Index' parameter; see http://www.mathworks.com/help/matlab/ref/imread.html#f25-721031
You might have sub-images for some of the images in the TIFF file; for that see http://www.mathworks.com/help/matlab/import_export/importing-images.html#br_c8to-1
  댓글 수: 1
Bob
Bob 2013년 5월 28일
Thx for your quick reply. As a rookie ,your Helping URL may give me great help

댓글을 달려면 로그인하십시오.


Image Analyst
Image Analyst 2013년 5월 28일
I don't know what " adjusted to match the imageA" means. Do you mean histogram matching, or spatial registration like you'd correct for with imregister()? And what does "remote" mean? Do you mean multi-band spectral satellite images? Or cameras taken from remote locations, like surveillance cameras?
  댓글 수: 2
Bob
Bob 2013년 5월 28일
Sorry for my ambiguous question. Remote means satellite images,and the what I processing with is called NTL image data.It is a tiff file.Due to some unexpected factors such as sensor renewal,the images(with the same location) acquire by different sensor in different time cause some error.I want to use one of the images as criterion. Then do the binary regression analysis with the other images(Ax*x+Bx+C=y).So I can find the parameters(ABC)for each of the other images.Fianlly I use the fuction:NewDN=A*ExDN*ExDN+BExDN+C to creat a new image which I think could decrease the error between different time images. My English is also poor as my matlab ,thanks for your patience and your time.
Image Analyst
Image Analyst 2013년 5월 28일
Sounds like you'll need to do both. Check out imregister(). Then, once they're aligned, you can do histogram matching. I have a histogram matching app in my File Exchange: http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

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

Start Hunting!

Translated by