I did sketalization of images using morphology module of skimage.
The output seems quite cool but I want the output to somehow be over my threshold/binary output so that I can confirm whether the output is accurate or not. I tried achieving this using PIL but in vain.
overlapping skeletons of images
387 Views Asked by quest1001 At
1
There are 1 best solutions below
Related Questions in OPENCV
- Creating multiple instances of a class with different initializing values in Flutter
- OpenCV2 on CLion
- How to Draw Chinese Characters on a Picture with OpenCV
- Python cv2 imwrite() - RGB or BGR
- AttributeError: 'Sequential' object has no attribute 'predict_classes'. Did you mean: 'predict_step'?
- Search for an icon on an image OpenCV
- DJI Tello won't follow me
- Python OpenCV and PyGame threading issue
- Need help in Converting Python script (Uses Yolo's pose estimation) to an android app
- Line Segmentation Problem: How to detect lines and draw bounding box of that line on handwritten letters Using CV2
- Configure CmakeLists.txt to avoid manually copying dlls
- How to detect the exact boundary of a Sudoku using OpenCV when there are multiple external boundaries?
- AttributeError: 'Results' object has no attribute 'box'. can anyone explain this?
- How to generate a VPI warpmap for polynomial distortion correction?
- I am trying to make a project of object detection on kaggle notebook using yolo. and i am facing this error. here is my code and my error
Related Questions in IMAGE-PROCESSING
- RuntimeError: Given groups=1, weight of size [64, 1, 3, 3], expected input[1, 3, 416, 416] to have 1 channels, but got 3 channels instead
- Unable to open shape_predictor_68_face_landmarks.dat
- When transferring mri t1 to mni152 spaces, the dimensions change and lose information, is that not a problem?
- How to detect the exact boundary of a Sudoku using OpenCV when there are multiple external boundaries?
- Nuke BlinkScript: Why does the convolution kernel scale down the image?
- CV2 Python - image merging based on homography matrix - error in mergeing
- Python pillow library text align center
- Implementing Image Processing for Dimension Measurement in Arduino-based Packaging System
- AI tools for generating clean clipping paths
- efficient way to remove a background from an image in python
- I want to segment an MRI image of the spine and obtain only the vertebrae using Matlab
- Find Gradient Magnitude using skimage.feature.hog module
- AR Image Display Issue
- Using python OpenCV to crop an image based on reference marks
- Python: Generating an image using Multiprocessing freezes
Related Questions in PYTHON-IMAGING-LIBRARY
- How to Draw Chinese Characters on a Picture with OpenCV
- Python cv2 imwrite() - RGB or BGR
- Python pillow library text align center
- Python canvas save drawing problem with postscript sizes
- Reading IPTC information Django
- How to Make PNG Remain Transparent in Tkinter?
- Python pyside6 Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)
- I am trying to build an AI image classifier in Python using a youtube guide. When I run my program (unfinished) it does not open up the image
- Is there a way to include a copied image in Python/Tweepy, I can't seem to do it using Pillow
- Trying to convert an image to a Stream for use with Spire.Barcode ScanStream functionality
- How do you create a semi-transaparent image in numpy and saving it in pillows as PNG
- ImportError: cannot import name 'PILLOW_VERSION' from 'PIL'
- How to distort an image with python PIL using an inner quad without cropping out of the quad
- PyInstaller has a PIL directory, but the exe file throws an error "ModuleNotFoundError: No module named 'PIL'"
- Image Wrap in Pillow
Related Questions in SCIKIT-IMAGE
- Error processing image dataset\train\image\ff8bf1417c.png: No skimage.transform attribute extract_patches --
- Find Gradient Magnitude using skimage.feature.hog module
- Problem while measuring with regionprops for the first index in the interaction
- How to fill the area for segmentation using fill_holes function?
- When calculating SSIM using skimage, getting error
- What is the difference of converting to gray using different approaches or libraries?
- Python: ski.transform.warp from scikit-image library does not work as expected
- What is the difference between skimage view_as_window and sklearn extract_patch_2d, in the context of extracting array of patches from an image?
- Extracting the (size of the grid)features from an image
- Circle the segmented image to the original
- How to separate two touching blobs?
- im try to do laplacian_pyramid_blending and im getting a wired out put
- Why does it seem necessary to rotate transformation matrix for mapping coordinates with scikit image?
- composite score for denoising 1D signal
- How to generate a list of coordinate pairs from a simple image of a line
Related Questions in MEDIAL-AXIS
- Finding the connection lines between layers of a trimesh
- How to execute skeleton code on different binary images
- How to find the distance to boundaries using an existing and refined medial axis?
- overlapping skeletons of images
- Is there any method to find medial axis distance at middle, and fifth pixel of end points of skeleton medial axis?
- FloMAT library export
- ST_ApproximateMedialAxis leaving skeleton lines on final approximation
- Boundary to medial axis transform
- How do I calculate the medial axis for a 2D vector shape?
- Medial axis(orthogonal skeletonization) of blobs
- Is it possible to construct a medial axis for a polygon in sub-quadratic time?
- Delaunay triangulating the 2d polygon with holes
- Exact Medial Axis, Surfaces, Skeletonizations of 3D Polyhedra
- How to calculate the medial axis?
- Find medial axis of a polygon using C#
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?
To keep things simple make a copy of the original image
Outline the skeleton as follows:
Displaying
resultshould give the expected outputUPDATE:
I have provided complete solution using OpenCV:
Result for an additional image shared recently:
Problems:
There are some problem as to why it doesn't work with your code:
Your
imgis read as grayscale. The snippetresult[sk == 255] = (255,255,255)expectesresultto be 3-channel RGB/BGR image hence you face the value error.Another thing I noted is, using
imreadfromskimagereads the image infloatdata type with pixel range 0 to 1.0. Later when you useskeleton = medial_axis(canny).astype(np.uint8)convertsskeletontointdata type but also restricts pixel range from 0 to 1. As a result, even the portion expected to be in white is seen in black