We have our own raster map and I have raster pixel slope value on map which is calculated using formula as shown in the link below Pixel Slope Calculation, which is used to show different color as per the pixel slope value. So for a given point I can have these slope value anywhere on the map.
Earlier for calculating straight line slope between two points, I used to read elevation difference and then calculate straight line distance between those two points and finally dividing these two values. But I think with these pixel slope value my calculation can be minimize.
Is it possible to calculate the same value using pixel slope values of these points? If yes then how?