I am trying to identify object neighbors for a given image.
Currently, I am using Adjacent type in my module, assuming that the cells in concern, between whom I want to find the angle, are overlapping to a small extent.
However, the angle that I want to calculate is the one between the major axes of the two objects only (Not between the object of concern and closest object 1, 2, which will bring it to a total of 3 objects)
How can I do the same? I have attached the module I am working with and the results obtained.
PS: My objective is to ultimately use the pipeline to locate angles between cells such that it calculates angles (identifying neighbors) only between adjacent ones which are along a flow direction of the chain (and not between other surrounding cells).