×

python gdal file rel

python gdal.Open(file) Warning1:TIFFReadDirectory:Sum of Photometric type-related color channels?在xcode9中对于makefile的问题

admin admin 发表于2022-07-11 00:57:32 浏览102 评论0

抢沙发发表评论

python gdal.Open(file) Warning1:TIFFReadDirectory:Sum of Photometric type-related color channels


你好,除了这两行后面还应该还有信息的。
如果能打印出图片的信息的话,这个读入就没有问题。
下面是一些没有问题的提示例子。
What seems OK:
$ tiff2rgba 001.tif 001rgba.tiff
produces a picture that seems OK viewed with gwenview.
$ tiffdither rietkleur003.tif rikldit003.tif
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn’t match SamplesPerPixel. Defining non-color channels as ExtraSamples..
tiffdither: Not a b&w image.
OK, it is a color image, decent message to me.
$ tiffdither gray1.tif gray1dit.tif
produces a heavily dithered image. Seems OK.
$ tiffgt rietkleur004.tif
displays the picture decently.
$ tiffinfo rietkleur004.tif
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn’t match SamplesPerPixel. Defining non-color channels as ExtraSamples..
TIFF Directory at offset 0x1a51b08 (27597576)
Image Width: 2144 Image Length: 3218
Bits/Sample: 8
Compression Scheme: None
Photometric Interpretation: RGB color
Samples/Pixel: 4
Planar Configuration: single image plane
Seems OK.
$ tiffsplit rietkleur004.tif
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn’t match SamplesPerPixel. Defining non-color channels as ExtraSamples..
There is nothing really to split, but it generates a decent xaaa.tif file, copy of the original picture. OK for me.
]$ tiffmedian rietkleur007.tif riklmed007.tif
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn’t match SamplesPerPixel. Defining non-color channels as ExtraSamples..
produces an akward color picture with only a few week but quite different colors. I guess that’s what I asked for.

在xcode9中对于makefile的问题


*   不包含扩展名的目标文件名称。
$%  如果目标是归档成员,则该变量表示目标的归档成员名称。例如,如果目标名称为   (image.o),则 $@ 为 ,而 $% 为 image.o。

如何查看linux支持的filesystem类型


1、查看内核支持的fs模块
ll /lib/modules/2.6.18-400.1.1.el5/kernel/fs
ll /lib/modules/3.10.0-327.el7.x86_64/kernel/fs
2、编译安装自己需要的分区类型,比如ntfs
3、查看现有的文件系统的文件系统类型
more /etc/fstab
df -T
mount
parted /dev/vda print
-rel