لدي صورة لرادار قياس المطر لكنها مشفرة واريد فتحها بواسطة ماتلاب
هدا programme لفتح الصورة في delphi للتوضيح خصائص التشفير
>> Procedure de visualisation de l’image radar 512x512 }
procedure visu_Image(var fromf:file);
begin
BlockRead(Fromf, Buf, SizeOf(Buf),noctet);
form2.hide;
form2.show;
form2.caption := ‘station:’+ buf.indica +’ heure:’+buf.heure+’:’+buf.minute+’ date:’+buf.jour
+’/’+buf.mois+’/’+buf.annee;
for i := 1 to 512 do
begin
BlockRead(F, Buf0, SizeOf(Buf0),noctet);
k:=0;
for j:= 1 to 256 do
begin
pixg := integer(buf0[j]) shr 4; {pixel gauche }
pix0 := integer(buf0[j]) shl 4;
pixd := pix0 shr 4; {pixel droite}
inc(k);
form2.canvas.pixels[k,i]:=couleur(pixg);
inc(k);
form2.canvas.pixels[k,i]:=couleur(pixd);
end;
end;
end;
??? Procedure de visualisation de l’image radar 512x512 }
انت لم تشرح لي جيدا la structure الخاصة بهذا الملف
فتبعا لشرحك السابق
قمت بفتح الملف ووجدت ان 160 اوكتي الاولى تحوي معلومات لا اعرف كيف احل تشفيرها
والباقي 512 . 256 اوكتي
فيها قيمة واحدة 17
وهذا بعد فرضي ان الملف مكتوب بنظام Unit8
لن استطيع التقدم اكثر مالم تقدم لي معلومات اكثر
معلومات الخرائط المقدمة من الرادارات تكون وافية وكثيرة
اعطيك مثال
هذا احد الملفات المقدم من NASA وانظر كيف يكون شرح la structure
There is a BIN file included, which is the raw format, and not an image. Reto Stockli has provided the following explanation of the format: .bin files in the BMNG file repository are made of 8bit unsigned binary files, structured as 3 Channels X 86400 columns X 43200 lines. No header data, no ASCII text data in these files. You read the files as a byte array with 3 dimensions: 3x86400x43200 where the first dimension are the RGB (Red Green Blue) color triplets of the image, the second dimension are the number of columns (X dimension) and the third dimension are the number of lines (Y dimension). The image starts with 3 bytes of the RGB values of the northernmost and westernmost pixel. The next 3 values are the RGB values of the one pixel to the east of the first pixel. And so on. Geographic projection with a regular grid spacing of 0.004166667 degrees per pixel.