No video

273 - What is Voronoi - explanation using python code

  Рет қаралды 14,959

DigitalSreeni

DigitalSreeni

Күн бұрын

Code generated in the video can be downloaded from here:
github.com/bns...
A Voronoi diagram divides the plane into separate regions where ​each region contains exactly one generating point (seed) and​ every point in a given region is closer to its seed than to any other. ​The regions around the edge of the cluster of points extend out to infinity.
This video explains Voronoi using python.

Пікірлер: 34
@dnakama2096
@dnakama2096 4 ай бұрын
Terrific! I have been the whole day looking for information of Voronoi and this video let me to understand it completely. Thanks for uploading this high quality content!
@krishnanunnib4546
@krishnanunnib4546 2 жыл бұрын
Vornoi is also used in 3d softwares for making fractures in a geometry.
@joelgraff6550
@joelgraff6550 2 жыл бұрын
Another great video, Screeni. There were a couple times where you were pointing out something on the video, but your mouse pointer wasn't visible. Although I could understand where you were talking about in the image, seeing a mouse pointer could help make this clearer. Also, do the lines in the Voronoi texture run perpendicular to an unseen line connecting the two vertices? It seems like the line is close to perpendicular, but it's difficult to be sure because I feel like there was a hint of optical illusion that made my mind a little confused.
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Yes, I realized that too late. Need to be mindful for future videos.
@joelgraff6550
@joelgraff6550 2 жыл бұрын
@@DigitalSreeni Congrats on hitting 3,000,000 views.
@zhenli1630
@zhenli1630 Жыл бұрын
could you tell me that how to plot weighted voronoi by python, or can i set a value for the expanding speed from the scatter?
@DrawMeAParadox
@DrawMeAParadox 5 ай бұрын
Hello sir! First of all, thank you very much for what you do for us 🙏 I have a question: how can we extract random points from a plot into an array or a list?
@rams8265
@rams8265 2 жыл бұрын
Can you please share the link for the temp.jpg file. Thanks, very nice summary. Looking forward to the next one.
@TuTu_Investing
@TuTu_Investing 2 жыл бұрын
Hi Sreeni, thank you very much for another great video! I wonder where we could use this voronoi approach in a more powerful and specific way where a simple median filter followed by a thresholding, a watershed and find contour could not solve.
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
These are all the tools you can use to achieve a specific task. We still need watershed with Voronoi approach; it is just that Voronoi makes it easy to identify the 'domain' around an object that needs to be segmented.
@ashwiniyadav464
@ashwiniyadav464 2 жыл бұрын
Hello sir.. Very interesting and informative video thank you very much Sir can u suggest latest segmentation method for medical image applications
@user-nv2xy8dx5b
@user-nv2xy8dx5b 2 жыл бұрын
Thank you sir for what you are doing... Sir, I have trained effiecientnetbo to classify images and then convert them to tensorflow lite I am trying to deploy on Raspberry pi 400 but the message appears when I try to load the model "could not open 'model path' s"
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Looks like the path to your model is not correct. You may have to play with slashes and backslashes as things are different between Windows and Linux.
@younesmatoqu2573
@younesmatoqu2573 2 жыл бұрын
Thank you very much for sharing your great knowledge with us I highly appreciate your effort, can you please discuses Mask R-CNN since it is important nowadays in most of the fields, waiting for this video from you cause you are the best in teaching!!!!
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Coming up in a few weeks. Stay tuned.
@omarfaruqehamim8205
@omarfaruqehamim8205 6 ай бұрын
You said that each voronoi region contains exactly one point. But in the illustration at timestamp 2:09, I can see upper-right most (blue colored) and lower-right most (brown colored) regions do not contain a single point. I wanted to ask what is the reason behind this, and also is it possible to have less number of voronoi regions than the number of points?
@PUBUDUCG
@PUBUDUCG 2 жыл бұрын
Why this can not be done with simple thresholding ?
@lalitsingh5150
@lalitsingh5150 2 жыл бұрын
Thanks for another great Video.....
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Thanks for watching!
@lomacomfktoo200
@lomacomfktoo200 2 жыл бұрын
Hello Sir, thank you so much for always teaching us 🙏, as usual great video and content of quality 👍 this one came right in time😆 almost like u'r watching over us 👀😅 just asking .... the peak_local_max are not corresponding to the img... or it's me who's missing something?🤔 i was trying to plot the voronoi over the img when i noticed, i fliped and rotated the img to match the points. ------------------- vor=Voronoi(points) fig,ax = plt.subplots(1,1) ax.imshow(np.rot90(np.flip(blured_img, 0), k=3), cmap="binary_r") voronoi_plot_2d(vor, ax, line_colors="yellow") plt.xlim([0,256]), plt.ylim([0,256]) # plt.axis('off') plt.show()
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
I don't expect any image flipping during peak_local_max operation. Not sure what's going on with your images. Must be something else.
@lomacomfktoo200
@lomacomfktoo200 2 жыл бұрын
​@@DigitalSreeni yeah i tried: for coords in points: blured_img[tuple(coords)]=0 plt.imshow(blured_img) plt.show() every point on spot....then i noticed: plt.plot(points[:,0], points[:,1], 'r.')# what i did plt.plot(points[:,1], points[:,0], 'r.')# what u did the problem was just that plt.plot and voronoi_plot_2d use a different axis order than plt.imshow. so if we want to plot one over the other we need to invert the points coordinates or rotate and flip the img. Thanks for your reply🙏
@hrushikeshsahasrabuddhe5103
@hrushikeshsahasrabuddhe5103 2 жыл бұрын
Superb video!
@simonemartino9425
@simonemartino9425 Жыл бұрын
Is possible to compute it in 3D and visualize ?
@nying3452
@nying3452 2 жыл бұрын
Dear sir, this is a very wonderful video. I would like to use this tool. but I can't install this with pip and conda. could you guide me on how can I install this, sir?
@tilkesh
@tilkesh Жыл бұрын
Thx
@RAZZKIRAN
@RAZZKIRAN 2 жыл бұрын
thank you sir
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
Most welcome
@naimamirobidova2092
@naimamirobidova2092 2 жыл бұрын
Thank you
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
You're welcome
@safwanshaibani8928
@safwanshaibani8928 2 жыл бұрын
Sir, the code is not there on Github, Can you mentioned again ?
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
It will be uploaded tomorrow when I return back home from my business trip. Thanks for your patience.
@aliyousif9319
@aliyousif9319 2 жыл бұрын
Thank you
@DigitalSreeni
@DigitalSreeni 2 жыл бұрын
You're welcome
274 - Object segmentation using voronoi and otsu
14:37
DigitalSreeni
Рет қаралды 6 М.
Why this pattern shows up everywhere in nature || Voronoi Cell Pattern
14:36
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 4,5 МЛН
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 18 МЛН
Meet the one boy from the Ronaldo edit in India
00:30
Younes Zarou
Рет қаралды 14 МЛН
Happy birthday to you by Tsuriki Show
00:12
Tsuriki Show
Рет қаралды 10 МЛН
Voronoi Diagrams and Procedural Map Generation
15:36
MAN OF EERIE LETTERS
Рет қаралды 38 М.
290 - Deep Learning based edge detection using HED
19:35
DigitalSreeni
Рет қаралды 12 М.
33 - Grain size analysis in Python using watershed
38:48
DigitalSreeni
Рет қаралды 21 М.
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 4,5 МЛН