**New course!**Every coder should learn

**Generative AI!**

+ 4

# 2d binary pyramid

Can anyone help me with implementation of 2d binary pyramid ? As I understand I must represent image like map of points(layer) and bound each 4 points to one and do it for every layer while they width and height not become less then two. I tried write it several times but it's work not like I expected. I need it for image segmentation. Please can you write a simple implementation of it ?

3 Answers

+ 4

Can we take a look at your previous attempts? It would serve as a basis of understanding and correcting what went wrong.

+ 2

okey, but now I not at home. so I hope that I will have sent it by the end of the day