## Use of transform in pytorch

1.ToTensor convert picture format Transform is a transform.py file, which contains multiple classes, including the ToTensor class. Note that ToTensor is a class, not a method. First, create an object, and then use the object to convert the picture's PIL format or numpy format into the Tensor format. The code is as follows: from PIL import ...

Posted by ssidellq on Wed, 27 Oct 2021 03:27:36 +0200

## opencv image processing - image morphology

Mathematical morphology is an important tool for image processing. It can be used to obtain image boundary, extract skeleton, remove noise and detect corners Character recognition, visual detection and medical image processing. Morphological transformation is a simple operation based on image shape. Morphological processing is mainly aimed at ...

Posted by goldlikesnow on Sat, 23 Oct 2021 16:19:21 +0200

## Analysis of Hough's line transformation and circle transformation principle and python experiment

Hough transform In the x-y coordinates of the image, the straight line passing through the point (x_i, y_i) is expressed as y_i=k∗ x_i+b (1), where k is the slope and b is the intercept If x_i ,y_i is regarded as a constant and K and b are regarded as variables. Formula (1) can be expressed as b = - k * x_i + y_i(2) In this way, ...

Posted by xenooreo on Sat, 23 Oct 2021 02:24:08 +0200

## pclpy RANSAC fitting segmentation plane

1, Algorithm principle 1. Overview    due to the different fitting models according to the number of sampling points, the random consistent sampling algorithm can extract point cloud subsets with different shapes and states. Generally, the common model parameters are well fitted, the required sampling points are less, and the am ...

Posted by jetskirich on Sun, 03 Oct 2021 01:09:10 +0200