Question

In: Computer Science

Explain in your own word about the "bwdist" function in MATLAB. Compare the different between Euclidean,...

Explain in your own word about the "bwdist" function in MATLAB.

Compare the different between Euclidean, City block, Chessboard, and Quasi-Euclidean in "bwdist" function

Solutions

Expert Solution

ans )

The bwdist function is accociated with the Distance Transform of a Binary Image, which means it calculates the distance between each  pixel that is from the 0 to the nearby non-zero image( 1 ) for a input binary image.

*Distance Transform of a Binary Image : distance transform measures the distance between the points in a image.

bwdist function supports metrics like : Euclidean, City block, Chessboard, and Quasi-Euclidean

each of them in detail :

Euclidean :

Euclidean distance is the straight-line distance between two pixels in a given input image.

City block :

measures path between the pixels based on the 4-connected neighbourhood. pixels which are touching edges are considered as 1 uint apart and touching with diagonal are 4 unit .

what is 4-connected and eight connected : ?

the 4- connected neighbourhood means if take one pixel then set of all pixels which are connected by one common edge, so in a 33 image pixel , if take a centre pixel point then there are 4 adjacent pixels which touches with it, called by 4-connected

8-connected: including the 4-connected pixels and the pixels connecting diagonaly(corners ) , so a total of 8 connected pixels.

Chessboard :

measures the path between pixels on an 8-connected neighbourhood. pixels touching edgewise or corner wise are taken as "1" unit distance apart.

Quasi-Euclidean :

Quasi-Euclidean will measure the  total Euclidean distance throughout a path of horizontal, vertical, dioganal of the pixels.


Related Solutions

What's the different between force and motion in your own word
What's the different between force and motion in your own word
What are different types of retails and the wholesalers? Discuss in detail in your own word...
What are different types of retails and the wholesalers? Discuss in detail in your own word ( No copy paste from any website or book )
write a paragraph in your own word about 13.1 The importance of offering a product suitable...
write a paragraph in your own word about 13.1 The importance of offering a product suitable for the intended
write a paragraph explaning in your own word about The interdependence of physical distribution activities.
write a paragraph explaning in your own word about The interdependence of physical distribution activities.
can anyone explain to me according to the own simple word not copy and paste about...
can anyone explain to me according to the own simple word not copy and paste about the theory of the blanned behavior and social Learning and relate them in the dental Hyegene thank You
please do it for me with ur own word i mean with different word please •...
please do it for me with ur own word i mean with different word please • In the podcast, it is noted that a group of Hawaiians had a resolve to keep the Hawaiian language alive. on language diversity was very interesting to listen to when they talked about the language that is lost, many people do not think much of it, but holding the home language through generation plays a role. The difference in generation plays a factor in...
In Schwarzschild geometry, the distance between two circles with different circumferences is larger than the Euclidean...
In Schwarzschild geometry, the distance between two circles with different circumferences is larger than the Euclidean result, because the distance between the two circles is given by integrating dr/ (1 − rs/r) (where rs is a positive constant) along the radial path between them. Invent an embedding of the radial part of the Schwarzschild spatial geometry in one extra Euclidean dimension, that we will call the z dimension. What is the relationship between dr and dz of the one-dimensional “surface”...
Be original and used your own word What about long term care insurance? Is it worthwhile...
Be original and used your own word What about long term care insurance? Is it worthwhile to pay into this insurance so that you're taken care of in your later years? Do we, when young, see the value?
please post a significant fact about the brain in your own words. Word count 150
please post a significant fact about the brain in your own words. Word count 150
PLEASE POST A SIGNIFICANT FACT ABOUT ASTHMA IN YOUR OWN WORDS. WORD MINIMUM 150
PLEASE POST A SIGNIFICANT FACT ABOUT ASTHMA IN YOUR OWN WORDS. WORD MINIMUM 150
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT