- #1
BrockLee
- 31
- 0
Hello,
I am working with python's Image Library (PIL), Sympy, and Matlab. I have a topographical map of the earth, ( see 3d warehouse from google ). I am wondering if with an rgb matrix from a jpeg heightmap is traditionally the value of black and white ignored, because it seems that the shallow depths of the ocean(light blue) is above the inland beachs(dark orange). I simply converted the 1440x720 rectangle image into a grayscale square with:
aTopoMap=imread('3dHH-earth-topo-1440f960-mm2km/texture1.jpg')
aGsTopo=sparse(1440,1440)
aInc=1
while(aInc<=720)
aRedMatrixRow=char(aTopoMap(ceil(aInc/2),:,1))*2
aGreenMatrixRow=char(aTopoMap(ceil(aInc/2),:,2))
aBlueMatrixRow=char(aTopoMap(ceil(aInc/2),:,3))*-1
aGsTopo(aInc,1:1440)=aRedMatrixRow + aGreenMatrixRow + aBlueMatrixRow
aInc=aInc+1
end
any help would be greatly appreciated
I am working with python's Image Library (PIL), Sympy, and Matlab. I have a topographical map of the earth, ( see 3d warehouse from google ). I am wondering if with an rgb matrix from a jpeg heightmap is traditionally the value of black and white ignored, because it seems that the shallow depths of the ocean(light blue) is above the inland beachs(dark orange). I simply converted the 1440x720 rectangle image into a grayscale square with:
aTopoMap=imread('3dHH-earth-topo-1440f960-mm2km/texture1.jpg')
aGsTopo=sparse(1440,1440)
aInc=1
while(aInc<=720)
aRedMatrixRow=char(aTopoMap(ceil(aInc/2),:,1))*2
aGreenMatrixRow=char(aTopoMap(ceil(aInc/2),:,2))
aBlueMatrixRow=char(aTopoMap(ceil(aInc/2),:,3))*-1
aGsTopo(aInc,1:1440)=aRedMatrixRow + aGreenMatrixRow + aBlueMatrixRow
aInc=aInc+1
end
any help would be greatly appreciated