我想要一种方法或步骤来统一2个图像的亮度,或者换句话说,使它们的亮度相同,但不分配它们。我知道如何使用PIL获取图像的亮度,代码如下: from PIL import Image
imag = Image.open("test.png")
# Convert the image te RGB if it is a .gif for example
imag = imag.convert('RGB')
# coordinates of the pixel
X, Y = 0, 0
# Get RGB
pixelRGB = imag.getpixel((X, Y)
假设我有两个字符串数组:
String[] first = new String[]{"12","23","44","67"};
String[] second= new String[]{"12","22","46","67"};
我搜索了一个像PHP的这样的函数,它可以给出这两个数组的区别,如下所示:
{"23","44"}
这个操作有没有内置的函数,或者我应该创建一个for循环并检查差异吗?