I am trying to solve this problem by using of Monte-Carlo Flooding algorithm. As result I receive set of semicircles (the picture below), but the requested solution is for trapezoid like polygons. Please, can you suggest me an algorithm by which I will be able to transform this semicircles in polygons? 
How to convert the result of Monte-Carlo Flooding algorithm to set of polygons?
97 Views Asked by Todor Balabanov At
1
There are 1 best solutions below
Related Questions in VISUALIZATION
- Customizing Kibana 4
- Extending Bokeh to match D3.js
- R: how to move axes labels closer to the plot
- How can I choose a legible color to draw text on a bar in a d3js chart?
- How to create link between nodes from different svg elements using d3.js
- Different colors for positive/negative parts of column
- d3's force layout not aligning nodes and links properly
- Is it possible to build a heatmap from point data at 60 times per second?
- Arrow color does not change in iPython when I am annotating a point on the scatterplot
- What is the equivalent to rpart.plot in Python? I want to visualize the results of my random forest
- How to create a Grouped Radial Bar Chart in R
- How to approach the Data Visualization aspect of D3?
- How to make a map with a contour plot overlay from latitude and longitude coordinates
- Java Algorithm Animator/Visualisation
- How to seperate overlapping bars in ggplot2?
Related Questions in POLYGON
- How can i add polygon on google maps IOS?
- Polygon shape margin in Java
- SVG simple animations
- Newbe help on getting from polygon shape file to Leaflet polygon
- creating polygons based on intersection
- R polygon: fill values >0 in a density plot
- CSS Container Wrap shaped Polygons
- position polygon accurately in Corona SDK? (relative to known vertices - issue is it creates it own centre
- Extracting polygon given coordinates from an image using OpenCV
- Draw arbitrary convex shape knowing the lengths of its sides
- Scale animation on polygon
- Get the mesh name from the selected vertex
- oracle spatial compute area of polgons inside a class of polygon group by polygon ID
- How can I create an internal spiral for a polygon?
- Drawing filled polygon with libGDX's earclippingtriangulator and PolygonSpriteBatch
Related Questions in GEOMETRY
- Generating a sphere in OpenGL without high level libraries - what's wrong with my code?
- Matrix (?) to Rectangle and vise versa
- Turn a button into a loading circle animation
- Find a longitude given a pair of (lat,long) and an offset latitude
- 2D perspective transform in JavaScript
- how to convert Oracle geometry to SQL GEOMETRY
- Overlapping Rectangles Javascript
- Detect hole in geometry
- Reversing RotateAxisAngle back to angles
- WPF: 2 string.format in the same TextBlock?
- Quaternion to EulerXYZ, how to differentiate the negative and positive quaternion
- How to find a point given its distance from two other points?
- Ray/Rectangle intersection in 3D space
- Pairs of points on a graph
- Android OpenCV Detecting Circles takes too much FPS
Related Questions in MONTECARLO
- Monte-Carlo PI on cluster
- Using machine learning to win an RTS game with unknowns
- Monte Carlo pi method with fixed x
- Monte Carlo Simulation with chaning distribution
- Markov Chain Monte Carlo Simulation Prooblem
- For loop issues for a Markov chain Monte Carlo
- MATLAB weighted resampling
- How to fill bidimensional arrays in fortran90
- R code: Is there a way to make this Monte Carlo simulation quicker?
- How to write to a matrix within a while loop in a monte carlo simulation in python 3
- how can i get the while loop to terminate when all matrix values are <0 and create a vector based on each iteration? in python 3
- Correct OpenMP pragmas for pi monte carlo in C with not thread-safe random number generator
- Calculate overlap area of two functions
- Simulating samples in R, storing them and calculating test statistic
- R - Ellipse Area with Montecarlo Method
Related Questions in FLOODING
- Flood Data in PHP form
- SYN Flooding Attack
- Defend Python socket from TCP SYN flood
- When to use Energy vs Momentum computation mode for Steady flow analysis on HEC-RAS
- select() on socket (trouble)
- HTTP Flood on Tomcat server causing issues
- How to bann/block automatically IPs from a large access log with Nginx?
- How to set a dispatch rate to ActiveMQ queue
- Preventing database flooding on register
- ASK : What if 1 server send ping to 5000 or more device?
- How can I limit the number of times an element is clicked within a minute?
- Flood filling C++
- Maximum execution time for of 30 seconds exceeded in Goutte
- How to detect ping flood in java?
- PHP: Anti-Flood (Honeypot)
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
First, you extract your pieces as contours, using Suzuki-Abe algorithm (Suzuki, S. and Abe, K., Topological Structural Analysis of Digitized Binary Images by Border Following. CVGIP 30 1, pp 32-46 (1985)). You'll get all contours out of your image as they are produced.
Then, you approximate contours into polygons using Ramer-Douglas-Peucker algorithm.
THere is well-known library which does it all - OpenCV, see link for details https://docs.opencv.org/2.4.13.2/modules/imgproc/doc/structural_analysis_and_shape_descriptors.html