android - Displaying a route on a floor plan image -
i have floor plan on walls black, doors orange , target red. want make app given specific point on image, route target calculated , displayed. have routing method, in matlab , each position , object defined in code , doesn't use image. know how scan image identify walls, doors , target color in order apply routing method , display route on image of map (i guess should use drawable that).
this steps implement pathfinding algorithmm image.
- upload image
- apply color detection hsv(in real life easy control light changes format) algorithm obtain objects separately.
- make new binary matrix 1 floor , 0 obstacles.
- apply binary matrix occupancy grid algorithm(this reduce matrix because in pathfinding algorithm need processing).
- i recommend use diijistrak or star algorithm, in 2 cases need construct adjacency matrix.
the graph theory understand better.good luck!!
you can work in processing ide rapid prototipyng , migrate processing ide core eclipse, need implement papplet class in eclipse project, , can compile app android.
Comments
Post a Comment