Questions tagged [diplib]

For questions on the DIPlib library and related packages, including DIPimage (MATLAB toolbox), PyDIP (Python bindings) and DIPviewer.

DIPlib is a C++ library for quantitative image analysis. Originally written in C, it has been in development at Delft University of Technology in The Netherlands since 1995. The 3.0 release of DIPlib represents a complete rewrite in modern C++ of the library infrastructure.

The DIPlib project includes interfaces to MATLAB (the DIPimage toolbox) and Python (PyDIP, a thin wrapper of the C++ API). It also includes DIPviewer, an interactive image display utility, and DIPjavaio, an interface to OME Bio-Formats, which gives DIPlib the ability to read just about any image file format.

Relevant links:

25 questions
3
votes
3 answers

Measuring the distance between two lines using DipLib (PyDIP)

I am currently working on a measurement system that uses quantitative image analysis to find the diameter of plastic filament. Below are the original image and the processed binary image, using DipLib (PyDIP variant) to do so. The Problem Okay so…
Brayton Larson
  • 67
  • 1
  • 1
  • 8
2
votes
1 answer

How to accurately measure the contact ear orientation on a flat battery using diplib

Our production line want to automate the fabrication of flat battery, I want to accurately measure the contact ear orientation of the flat battery and send the center of the battery coordinate plus the ear orientation degrees to linuxCNC motion…
HotCat
  • 55
  • 6
2
votes
1 answer

DIPlib: Converting a dip::Image object to a vigra::MultiArrayView object with dip_vigra::DipToVigra not working

I am facing some trouble when I try to convert from a dip::Image object to a vigra::MultiArrayView. The way vice versa works fine, but when I try to call dip_Vigra::DipToVigra I am getting: error: no matching function for call to…
Phtagen
  • 121
  • 10
2
votes
1 answer

dot detection on the washer with opencv

I am using opencv blob detection function to detect black dots but it cause slow speed and high cpu consumption. Is there more effective way to detect those black dots ? and Blob detection sometimes not detecting some black dots This is my example…
2
votes
1 answer

Regionprops vs. PodczeckShapes/DIPimage Circularity question - Matlab

Can someone please explain me why the 'Circularity' in Matlab is calculated by (4*Area*pi)/(Perimeter^2) while in Podczeck Shape it is Area/(Pi/4*sp^2) https://qiftp.tudelft.nl/dipref/FeatureShape.html)? Or is it just simply defined differently? I…
wrek
  • 309
  • 2
  • 13
2
votes
1 answer

DIPimage measure missing argument

I am trying to use DIPimage to get some measurements of each object in an image and I get this error: Error using dip_measure DIPlib Error in function dip_Measure. DIPlib Error in function dip_ImageCheck: Data type not supported Error in measure…
jane
  • 567
  • 2
  • 12
2
votes
1 answer

Compiling Python Module for Specific Version of Python

RI am having to manually compile a library/module for Python on Ubuntu 16.04 and am running into problems. The library is here: DIPlib 3 - PyDIP It's a size quantifier for OpenCV. The problem is when running the command: cmake…
jcoop7777
  • 73
  • 6
1
vote
1 answer

How to accurately measure the rotation angle of an round corner rectangle

I wrote a small python script using diplib to measure the center and the roation angle of our product. I wise the output should be as precise as possible since I relied on this to drive an industrial PNP machine to precisely place a panel on it.…
HotCat
  • 55
  • 6
1
vote
1 answer

How to detect pits on smart card contact pins using diplib

During the smart card manufacture process, a probe stucks could leave pits on contact pins. I try to use dip.tophat and dip.HysteresisThreshold to extract the pits, this works but found more local height outside or near the edge of the contact pins.…
1
vote
1 answer

How to get the convex hull of a binary image using DIPlib in C++?

I have a stack of binary images of an open porous structure and I want to get a binary mask which covers the whole volume of the structure (the structure itself and the void contained in the structure). I think a good way to achieve my goal would be…
Phtagen
  • 121
  • 10
1
vote
1 answer

Detecting circles with DIPlib

I'm trying to detect the circles in this image: and then drawing such circles in another blank image using DIPlib in C++. Following the advices of Cris Luengo I've changed the code and now looks like this: #include #include…
1
vote
1 answer

How do I find the positions of my blobs using pydip?

import diplib as dip from matplotlib import pyplot as plt #reading video vid = dip.ImageReadICS(r'C:\Users\mrtij\.spyder-py3\20211123_152822_capture.ics') vid = vid[0:-1, 0:-1, 325:3149] smvid = dip.Gauss(vid, [2,2,0]) for i in range(1000, 1001): …
1
vote
1 answer

Washer measurement with DIPlib

I am using opencv to measure washers dimension for sorting purpose. But OpenCV is not precise enough that's the why I want to migrate my code from OpenCV to DIPlib. With below code I am measuring the following criteria: outside diameter, hole…
1
vote
1 answer

Basler camera and DIPlib

How can I convert a Pylon image (from the Basler camera library) to a DIPlib image in the C++ language? The code below illustrates how to convert the Pylon image to an OpenCV image: // Convert the grabbed buffer to a pylon…
1
vote
0 answers

Measuring objects real size from image python

I need to measure the size of plants from images. I made lots of research but none of them answer my question. I know the distance between the plants and camera and using this information I want to calculate the objects real size in my case plants…
ozer
  • 241
  • 2
  • 12
1
2