- Home /
Question by
ZeinabGhaemi · Sep 15, 2021 at 12:32 AM ·
c#unity 5augmented-reality
Pairing the location of virtual object with the background pixels.
Hi all, I am new to AR. I have some tubes in my AR app. What I need to do is to find the pixels around the tube in the background (I need to pair the location of tube with the location of pixels in the background which are around the tube). I want to calculate the average of pixels' colours in the background and assign a new colour to the tube. Please refer to the image for clarification. In this image, I have a green tube and I need to find the colour of pixels in red area. I am using HoloLens 2, MRTK and Unity 2019. Any help on how to do this is really appreciated. Thanks
[1]: /storage/temp/186246-tubelinks2.png
tubelinks2.png
(496.0 kB)
Comment