want to read and write a multiband image

5 ビュー (過去 30 日間)
Prince
Prince 2011 年 3 月 18 日
I wrote this programe for bad line correction but by using the below code m not getting the good image and i don't know how to read envi file format in matlab if someone knows plz help me out clear all; clc; a=multibandread('filename',[1300,256,242],'int 16',0,'bsq','ieee-le'); [m,n,h]=size(a) for i=1:m a(i,92,94) = ((a(i,91,94)+a(i,93,94)))/2; end a=multibandwrite('filename',[1300,256,242],'int 16',0,'bsq','ieee-le'); plz help me out someone....

採用された回答

Ashish Uthama
Ashish Uthama 2011 年 3 月 18 日
You could try this file exchange submission.
If that doesnt work, please update your question with more details:
  • What is 'bad line correction'?
  • Link to a description of what ENVI files are, hopefully with the format details
  • What you mean by 'good image'. Are you getting the data, but its not interleaved right? Or are you getting the wrong data type, or something else.
  • Format the code and add comments, so that its easier for people to read. (I dont know why you are modifying the values in the for loop.)
  1 件のコメント
Prince
Prince 2011 年 3 月 18 日
"bad line correction means if there are no values in any column for the bands and we average the value by the adjacent ones.
*envi files are BSQ,BIL,BIP
*good image means from which i can visualize the objects. like buildings roads etc.

サインインしてコメントする。

その他の回答 (1 件)

Evelyn Livermore
Evelyn Livermore 2011 年 4 月 16 日
ENVI files are classified by their header file, which contains information on how many bands, which wavelengths and the x-y resolution. Example: 400*400 resolution, with 250 spectral bands in the visual spectrum.

カテゴリ

Help Center および File ExchangeFeature Detection and Extraction についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by