Is it possible to create a geometry for solvepde from a specific image?

2 ビュー (過去 30 日間)
Steven Manz
Steven Manz 2022 年 5 月 10 日
MATLAB has a built in Poisson solver (solvepde). In the literature, it explains that there is a way to define the geometry from built in functions. Like the following...
model = createpde();
geometryFromEdges(model,@lshapeg);
I want to do something similar. But I would like to use the image shown below.
I figure I need to use some combination of bwareaopen, edge, bwconncomp, and labelmatrix. But I was not able to understand how to create lines from the edges. I basically want some automated way to create a geometry from the given image above. There is most likely some sort of thresholding that is necessary to find these edges but I am not sure where to begin. Any help is desired.
For testing, I am attaching the JPG that I am using for this experiment.

回答 (0 件)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by