How manage RGB Pan sharpened image
I have a high resolution (about 30 cm) RGB pan sharpened image (3 channels, 16x3 bit). My need is to make some edge detection aimed to segment human artifacts.
I load the image with Mat rgbPanSharpen = Imgcodecs.imread(rgbPanSharpenImage, Imgcodecs.IMREAD_UNCHANGED);
but after that I have some doubts on how proceed.
I think I could work on single channels (using Core.split
) having single 16 bit images, may be also converting to 8 bit, but I am afraid this approach is lossy.
Which should be the correct approach to make edge detection on such kind of images ? (I don't ask for code, just the correct logical approch to follow)
could you upload the image somewhere
I edited my answer to add a sample image
did you try to apply Sobel. take a look at the tutorial code (i can send the compiled executable if you need)
thank you @sturkmen. I tried Sobel and I am able to make edge detection (I can share code if you believe it can be useful). So your overall suggestion is to work with the full image, without splitting.
in this forum working code snippets are always welcome i think.