1,924 questions
2
votes
0
answers
135
views
Removing gridlines from scanned forms
I am trying to remove gridlines from a form snippet as a preprocess step for OCR.
However, this turned out quite challenging when texts overlap with the gridlines.
Sample Images
I am very new to open ...
1
vote
1
answer
49
views
How to reduce xarray.coarsen with majority vote?
I'm currently trying to resample a large geotiff file to a coarser resolution. This file contains classes of tree species (indicated by integer values) at each pixel, so I want to resample each block (...
3
votes
2
answers
161
views
How does Local Binary Pattern return an image?
I'm trying to understand how scikit-image's local_binary_pattern() function works. Let's take the simplest setup: input is a grayscale image, radius = 1, n_points = 4, method = "uniform". ...
0
votes
1
answer
73
views
Skeletonized microglial cell branches not reconnecting after binarization, and background structures not removed
I'm working on a Python script for processing immunohistochemistry microscopy images of microglial cells. The goal is to:
Extract the green channel.
Apply CLAHE for contrast enhancement.
Perform Otsu ...
0
votes
1
answer
29
views
Photomosaic library raising TypeError: slice indices must be integers or None or have an __index__ method
I have the following code (a slightly modified version of this) to create a mosaic from many individual images:
import sys
import photomosaic as phmos
from skimage import io
image = io.imread("r....
0
votes
0
answers
72
views
How to speed up calibrating denoiser?
I'm trying to calibrate the denoiser like this:
import numpy as np
from skimage.restoration import (
calibrate_denoiser,
denoise_tv_chambolle,
denoise_invariant,
)
# create random noisy ...
2
votes
0
answers
153
views
Different SSIM Results for 3D Microscopy Slices Using torchmetrics and skimage: Which One Should I Use?
I am working with 3D microscopy data (e.g., stacks of 2D images) and trying to compute the Structural Similarity Index (SSIM) between two 3D images. The goal is to evaluate the similarity between an ...
1
vote
0
answers
85
views
Instance Segmentation of Curved Surfaces
I have a render of four identical objects and need to segment the curved surfaces and classify them (associate similar ones with each other).
All the objects are positioned at the same angle relative ...
0
votes
1
answer
104
views
How to optimize the weight for TV filter?
I have 2d data which has background noise and assembled high values. I'm trying to apply the TV filter to denoise the data. Is there a suitable method to avoid over-denoising the data?
I have tried to ...
3
votes
1
answer
75
views
How to use skimage to denoise 2d array with nan values?
I'm trying to apply the TV filter to 2D array which includes many nan values:
from skimage.restoration import denoise_tv_chambolle
import numpy as np
data_random = np.random.random ([100,100])*100
...
0
votes
0
answers
110
views
Find straight lines in image
I would like to find the locations of some lines in a series of images. The images are exported from GoPro videos, with the camera looking down onto a sloping floor (a beach, so to speak) in a wave ...
0
votes
0
answers
24
views
Image quality not reducing when I try to implement the given Mean structural similarity best-case/worst-case validation model in a paper
Im currently trying to implement the mathematical models in the paper " Image Quality Assessment: From Error Visibility to Structural Similarity" by Zhou Wang.
At section IV.A the author ...
3
votes
2
answers
156
views
With Python, how to apply vector operations to a neighborhood in an n-D image?
I have a 3D image with vector components (i.e., a mapping from R3 to R3). My goal is to replace each vector with the vector of maximum norm within its 3x3x3 neighborhood.
This task is proving to be ...
0
votes
3
answers
2k
views
How to solve this ERROR: Could not find a version that satisfies the requirement torch==1.6.0?
I'm using a demo on Colab notebook called Deep Exemplar Based Video Colorization. https://colab.research.google.com/drive/1Y1XTlTdUG-2LzrH1Vnr_osg9BQavfYsz?usp=sharing
Worked swimmingly for four years ...
2
votes
1
answer
479
views
multiprocess with joblib and skimage: PicklingError: Could not pickle the task to send it to the workers
I'm trying to parallelize the task of finding minimum cost paths through a raster cost surface, but I keep bumping into the same PicklingError: Could not pickle the task to send it to the workers.
...