Thank you for the response Mathias.
Will it work if I track the value of density throughout the cells?
I am asking this question because as far as I understand there is no sharp change in the density values and there is a finite distance associated where this change happens.
Thanks and regards
Bhuttu