Open hydrococcous opened 7 years ago
i try to find edges in a image.
`
var doFindFeatures = function() { tracking.Fast.THRESHOLD = window.fastThreshold; context.drawImage(source, 0, 0, width, height); var imageData = context.getImageData(0, 0, width, height); var gray = tracking.Image.grayscale(imageData.data, width, height, true); var sobel = tracking.Image.sobel(gray, width, height); var grayImgData = graycontext.getImageData(0,0,width,height); grayImgData.data.set(new Uint8ClampedArray(gray)); graycontext.putImageData(grayImgData,0,0); console.log('imageData: ', imageData); console.log('imageData.data: ', imageData.data); console.log('GrayScala: ', gray); console.log('sobel: ', sobel); };
` The soble-Functions returns an Float32Array. What i must do with that to generate a image shows the edges?
@sandrobirke
Look at
i try to find edges in a image.
`
` The soble-Functions returns an Float32Array. What i must do with that to generate a image shows the edges?