GPUImage icon indicating copy to clipboard operation
GPUImage copied to clipboard

GPUImageCannyEdgeDetectionFilter on part of image

Open StakshiGarg opened this issue 12 years ago • 4 comments

Hi,

I want to get details on part of image and based on selection is it possible to do it. That is to say : I want to have different blurFilter texelSpacingMultiplier applied to different section of image.

Thanks

StakshiGarg avatar May 07 '14 04:05 StakshiGarg

It's not clear what you're asking. Are you looking to find contours or filled regions? Currently, there is no means of doing that within the framework, merely identifying edge pixels.

BradLarson avatar May 07 '14 14:05 BradLarson

right now in GPUImageCannyEdgeDetectionFilter : GPUImageSingleComponentGaussianBlurFilter applies single texelSpacingMultiplier on entire image. What i would like to do is to split image in rectangular regions and apply different value of this variable in different region. Is it possible. So that i get more edges in one part of image and less in another.

StakshiGarg avatar May 09 '14 08:05 StakshiGarg

I responded to what I believe was your question on Stack Overflow: http://stackoverflow.com/a/23523588/19679 with ways of accomplishing this,

BradLarson avatar May 09 '14 15:05 BradLarson

Thanks Brad. I wrote custom shader for GPUImageGaussianBlurPositionFilter to work on a selected rectangle instead of radial. In CannyEdgeDetection form chain of such blurs over non intersecting regions instead of just one blur filter.

StakshiGarg avatar May 13 '14 10:05 StakshiGarg