var data = img.data;

            console.log("depth:" + depth.toString());
            console.log("ctype:" + ctype.toString());
            console.log("mean:" + ss.mean(data).toString());
            console.log("median:" + ss.median(data).toString());
            console.log(data)
        };

        xhr.send();


    }

</script>
</body>
</html>