WO2019104627A1 - Image gray scale classification method and device, and readable storage medium - Google Patents

Image gray scale classification method and device, and readable storage medium Download PDF

Info

Publication number
WO2019104627A1
WO2019104627A1 PCT/CN2017/113901 CN2017113901W WO2019104627A1 WO 2019104627 A1 WO2019104627 A1 WO 2019104627A1 CN 2017113901 W CN2017113901 W CN 2017113901W WO 2019104627 A1 WO2019104627 A1 WO 2019104627A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixels
class
pixel
target
image
Prior art date
Application number
PCT/CN2017/113901
Other languages
French (fr)
Chinese (zh)
Inventor
韩琨
阳光
Original Assignee
深圳配天智能技术研究院有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳配天智能技术研究院有限公司 filed Critical 深圳配天智能技术研究院有限公司
Priority to CN201780037500.4A priority Critical patent/CN109416749B/en
Priority to PCT/CN2017/113901 priority patent/WO2019104627A1/en
Publication of WO2019104627A1 publication Critical patent/WO2019104627A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/23Clustering techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a grayscale classification method and apparatus for an image, and a readable storage medium.
  • the target image is usually classified to achieve the purpose of scene segmentation and recognition.
  • the image will be polished and blurred during the actual shooting process.
  • the gray level classification cannot be correctly performed due to interference of series of problems such as noise.
  • the binarization method is usually adopted.
  • local dynamic classification and the like may be applied, for example, the maximum inter-class variance method. (OTSU); for scenarios where multiple classifications are required, clustering algorithms (such as kmeans) or improved binarization methods are often employed.
  • the inventors found that for a pixel whose target gray scale is close to the segmentation threshold, the classification is inaccurate using the binarization method; and the clustering algorithm has a certain randomness, which is not suitable for accurate classification, and the improved binary value.
  • the same method as the binarization method has the drawback of inaccurate classification.
  • the invention provides a method and a device for grading gray scale of an image, and a readable storage medium, so as to solve the problem that the gray scale is inaccurate due to interference of a series of problems such as lighting, blur, noise, etc. in the prior art.
  • the problem of classification is a problem of classification.
  • a technical solution adopted by the present invention is to provide a grayscale classification method for an image, the method comprising:
  • the pixels in the intermediate class are divided into one of two adjacent target classes according to grayscale values and/or positional information of the pixels in the intermediate class.
  • the pre-classifying the pixels according to the grayscale value of the pixels of at least part of the image comprises:
  • the m classes including n target classes and mn the intermediate classes, m and n are An integer and n ⁇ m ⁇ 2n-1.
  • the method includes: before using the clustering algorithm to divide the pixel into m classes according to grayscale values of pixels of at least part of the image, the method includes:
  • the initial cluster center in the clustering algorithm is determined by means of a gray histogram.
  • the step of determining an initial clustering center in a clustering algorithm by using a gray histogram method includes:
  • Pixel points of the image to be classified are divided into m equal parts by using a gray histogram
  • the average grayscale value of all of the pixels in all aliquots is calculated as the initial clustering center in the clustering algorithm.
  • the method before the step of determining an initial cluster center in the clustering algorithm by using a gray histogram, the method further includes:
  • the dividing the pixel in the intermediate class into one of two adjacent target classes according to a grayscale value of the pixel in the intermediate class comprises:
  • the pixel of the intermediate class is divided into one of a cluster center of two adjacent target classes and a grayscale value difference of the pixels of the intermediate class.
  • the two adjacent target classes include a first target class and a second target class
  • the grayscale value and location information of the pixel according to the intermediate class are Dividing the pixel in the intermediate class to one of two adjacent target classes includes:
  • the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the first target class is smaller than a difference from a cluster center of the second target class, and the middle And the number of the neighboring pixels of the pixel in the class belonging to the first target class is greater than the number of the second target class, and the pixel in the intermediate class is divided into the first target class ;
  • the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the second target class is smaller than a difference from a cluster center of the first target class, and the middle
  • the number of the neighboring pixels of the pixel in the class that belong to the second target class is greater than the number of the first target class, and the pixels in the intermediate class are divided into the first target class ;
  • the pixels in the intermediate class are isolated pixel points.
  • the method further includes:
  • the isolated pixel points are smoothed and then divided into one of the two adjacent target classes.
  • the neighborhood pixels of the pixel comprise pixels other than the pixels in the neighborhood of the pixel.
  • the neighborhood of the pixel is an M*N-sized window centered on the pixel, where M and N are preset values, and are integers greater than 1.
  • the neighborhood of the pixel is divided according to edge information.
  • an image gray scale classification device including at least one processor, which operates separately or in cooperation, and the processor is configured to execute instructions to implement the foregoing Methods.
  • Another technical solution adopted by the present invention is to provide a readable storage medium storing instructions which, when executed, implement the method described above.
  • the beneficial effects of the present invention are: different from the prior art, the gray-scale classification method of the image provided by the present invention is pre-classified, and then the pixels of the intermediate class are accurately classified into the target class according to the result of the pre-classification, thereby being able to accurately classify the pixels of the intermediate class into the target class. Effectively improve the accuracy of the classification, and the uneven lighting, noise and other problems can also solve the problem by using the classification method locally.
  • FIG. 1 is a schematic flow chart of an embodiment of a gray scale classification method for an image of the present invention
  • FIG. 2 is a schematic flow chart of another embodiment of a gray scale classification method for an image of the present invention.
  • FIG. 3 is a schematic structural diagram of an embodiment of an image gray scale classification device according to the present invention.
  • FIG. 4 is a schematic block diagram of an embodiment of a readable storage medium of the present invention.
  • FIG. 1 is a schematic flow chart of steps of an image gray scale classification method according to an embodiment of the present invention.
  • the gray-scale classification method of the image provided by the embodiment of the present invention can be applied to a relatively complicated scene, so that gray-scale classification is correctly performed when the gray-scale classification is performed without interference of a series of problems such as lighting, blur, and noise.
  • Methods include:
  • Step S101 Acquire an image to be classified.
  • the image to be classified may be a complete image, or may be a partial image taken from a complete image, for example, dividing a complete image to be processed into a plurality of windows, and selecting a partial image of at least one of the windows. As an image to be classified.
  • Step S102 pre-classifying the pixels according to the grayscale value of at least part of the pixels of the image to obtain at least two target classes and at least one intermediate class.
  • each intermediate class is located between the two target classes.
  • pre-classifying the pixels according to the grayscale values of the pixels of at least part of the image comprises:
  • the clustering algorithm is used to classify the pixels into m classes according to the grayscale values of the pixels of at least part of the image, and m classes include n target classes and m-n intermediate classes, m and n are integers and n ⁇ m ⁇ 2n-1. For example, when m is 5, it may include 3 target classes and 2 intermediate classes, and may also include 4 target classes and 1 intermediate class.
  • target classes and intermediate classes can be adjusted according to requirements, and an intermediate class can be set in every two target classes, or an intermediate class can be set in any two target classes, wherein the intermediate class
  • the pixels in the picture will be divided into one of the two target classes adjacent to it, and the detailed division method is described below.
  • the clustering algorithm refers to k-means. Algorithm, of course, in other embodiments, the clustering algorithm may be other algorithms, such as the k-medoids algorithm.
  • Step S103 the pixels in the intermediate class are divided into one of the adjacent two target classes according to the grayscale value and/or the position information of the pixels in the intermediate class.
  • the value of m is 3, and the value of n is 2, that is, the pixels of the image to be classified are classified into three categories according to the grayscale value of the pixel, which are the first class, the second class, and the third class, respectively.
  • the first class and the third class are target classes
  • the second class is an intermediate class.
  • the second class is Pixels are classified into the first or third class.
  • the pixels of the image to be classified are classified into five categories according to the grayscale value of the pixel, which are first, second, and third.
  • Class, fourth class, and fifth class wherein the first class, the second class, the third class, and the fifth class are target classes, and when the fourth class is an intermediate class, the grayscales of pixels according to the fourth class are The value or / and the position information of the pixel class classify the pixels in the fourth class into the third class or the fifth class, while the first class and the second class remain as the original pixels.
  • the grayscale values of the pixels of the image are pre-classified by the clustering algorithm, so that the grayscale values of the pixels in the same class have a small difference in magnitude, and the grayscale values of the pixels in the same class are different. Large, and then by the precise classification of the pixels of the intermediate class, so that the grayscale value classification of the pixel is more accurate.
  • dividing the pixels in the intermediate class into one of the adjacent two target classes according to the grayscale value of the pixels in the intermediate class comprises: dividing the pixels of the intermediate class into two adjacent pixels The difference between the grayscale value of the cluster center and the pixel of the intermediate class in the target class is smaller.
  • the clustering algorithm divides all pixels of the image into multiple clusters, and the grayscale values of the pixels in the same cluster are relatively close, while the grayscale values of the pixels in different clusters are relatively small.
  • the cluster center may be an average value of gray scale values of pixels in the cluster.
  • the two adjacent target classes include a first target class and a second target class, and the pixels in the intermediate class are divided into adjacent ones according to grayscale values and position information of pixels in the intermediate class.
  • One of the two target classes includes:
  • the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the first target class is smaller than the difference between the cluster center of the second target class, and the neighborhood pixel of the pixel in the intermediate class belongs to the first If the number of target classes is greater than the number of the second target class, the pixels in the intermediate class are divided into the first target class;
  • the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the second target class is smaller than the difference between the cluster center of the first target class, and the neighborhood pixel of the pixel in the intermediate class belongs to the second If the number of target classes is greater than the number of the first target class, the pixels in the intermediate class are divided into the first target class;
  • the pixels in the intermediate class are determined to be isolated pixels.
  • the neighboring pixels of the pixel include pixels other than the pixel in the neighborhood of the pixel, and the neighborhood of the pixel is a window of M*N size centered on the pixel, where M and N are preset values, and An integer greater than one.
  • the neighborhood of the pixel can also be divided according to the edge information.
  • the location information specifically refers to the classification information of the neighboring pixels, that is, the number of the neighboring pixels belonging to the first target class and the number belonging to the second target class.
  • the method further includes:
  • the smoothing process may be one of mean filtering, median filtering, Gaussian filtering, or bilateral filtering.
  • the isolated pixel may be divided according to the grayscale value of the isolated pixel, or may be divided according to the grayscale value of the isolated pixel and the position information of the isolated pixel.
  • the clustering algorithm is used to divide the pixels into m classes according to the grayscale values of the pixels of at least part of the image, and the method includes:
  • the initial clustering center in the clustering algorithm is determined by using a gray histogram.
  • the steps of determining the initial cluster center in the clustering algorithm by using a gray histogram method include:
  • Step S201 dividing the pixel points of the image to be classified into m equal parts by using a gray histogram
  • Step S202 calculating an average grayscale value of all pixels in all the equal parts as an initial clustering center in the clustering algorithm.
  • the gray histogram represents the number of pixels having each gray scale value in the image, reflecting the frequency of occurrence of each gray scale in the image, and the abscissa indicates the gray scale value of each pixel in the image, and the ordinate. Indicates the frequency at which each pixel of the image appears on each grayscale value.
  • the initial clustering center is arbitrarily selected, and in this embodiment, the pixels are divided into m equal parts by using a gray histogram, and the average grayscale value in each aliquot can be used as In the initial clustering center in the clustering algorithm, compared with the arbitrarily selected initial clustering center, determining the initial clustering center in the clustering algorithm by using the gray histogram can effectively improve the classification accuracy.
  • the method before the step of determining the initial cluster center in the clustering algorithm by using a gray histogram, the method further includes:
  • an embodiment of a grayscale classification device for an image of the present invention includes a processor 110. Only one processor 110 is shown in the figure, and the actual number can be more. The processor 110 can work alone or in concert.
  • the processor 110 controls the operation of grayscale classification of images, and the processor 110 may also be referred to as a CPU (Central Processing). Unit, central processing unit).
  • Processor 110 may be an integrated circuit chip with the processing capabilities of a signal sequence.
  • the processor 110 can also be a general purpose processor, a digital signal sequence processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware.
  • DSP digital signal sequence processor
  • ASIC application specific integrated circuit
  • FPGA off-the-shelf programmable gate array
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the processor 110 is operative to execute instructions to implement a grayscale classification method of the image of the present invention.
  • an embodiment of the readable storage medium of the present invention includes a memory 310 that stores instructions that, when executed, implement a grayscale classification method of an image of the present invention.
  • the memory 310 can include a read only memory (ROM, Read-Only) Memory), Random Access Memory (RAM), Flash Memory, hard disk, optical disk, etc.
  • ROM read only memory
  • RAM Random Access Memory
  • Flash Memory hard disk, optical disk, etc.
  • the gray-scale classification method provided by the embodiment of the present invention first pre-classifies, and then accurately classifies the pixels of the intermediate class into the target class according to the result of the pre-classification, thereby effectively improving the accuracy of the classification, and playing Problems such as uneven light, noise, etc. can also solve the problem by using the classification method locally.

Abstract

Disclosed in the present invention are an image gray scale classification method and device, and a readable storage medium. The method comprises: obtaining an image to be classified; pre-classifying at least part of pixels of the image according to gray scale values of the pixels to obtain at least two target classes and at least one intermediate class, each intermediate class being located between two target classes in the case of ranking according to the gray scale values of the pixels; and classifying the pixels in the intermediate class into one of two adjacent target classes according to the gray scale values and/or position information of the pixels in the intermediate class.

Description

一种图像的灰阶分类方法、装置以及可读存储介质 Gray scale classification method and device for image and readable storage medium
【技术领域】[Technical Field]
本发明图像处理技术领域,尤其涉及一种图像的灰阶分类方法、装置以及可读存储介质。The present invention relates to the field of image processing technologies, and in particular, to a grayscale classification method and apparatus for an image, and a readable storage medium.
【背景技术】 【Background technique】
在图像处理过程中,通常采用对目标图像的进行分类以达到场景分割、识别等目的,而在实际应用过程中,对于较为复杂的场景,由于图像在实际拍摄过程中会受打光、模糊、噪声等系列问题的干扰而导致无法正确进行灰阶分类。In the image processing process, the target image is usually classified to achieve the purpose of scene segmentation and recognition. In the actual application process, for the more complicated scene, the image will be polished and blurred during the actual shooting process. The gray level classification cannot be correctly performed due to interference of series of problems such as noise.
目前,对于场景中的目标灰阶差异较大的情况下,通常采用二值化方法,针对打光不均匀或其它干扰因素的情况下,可以适用局部动态分类等方法,例如最大类间方差法(OTSU);对于场景需要多分类的情况下,通常采用聚类算法(例如kmeans)或改进的二值化方法。At present, for the case where the target gray scale difference in the scene is large, the binarization method is usually adopted. For the case of uneven lighting or other interference factors, local dynamic classification and the like may be applied, for example, the maximum inter-class variance method. (OTSU); for scenarios where multiple classifications are required, clustering algorithms (such as kmeans) or improved binarization methods are often employed.
本发明人在长期的研究中,发现对于目标灰阶接近分割阈值的像素,使用二值化方法则分类会不精确;而聚类算法具有一定的随机性,不适合精确分类,改进的二值化方法与二值化方法同样存在分类不精确的缺陷。In the long-term research, the inventors found that for a pixel whose target gray scale is close to the segmentation threshold, the classification is inaccurate using the binarization method; and the clustering algorithm has a certain randomness, which is not suitable for accurate classification, and the improved binary value. The same method as the binarization method has the drawback of inaccurate classification.
【发明内容】 [Summary of the Invention]
本发明提供一种图像的灰阶分类方法、装置以及可读存储介质,以解决现有技术中对于较为复杂的场景,因受打光、模糊、噪声等系列问题的干扰而不能精确对灰阶进行分类的问题。The invention provides a method and a device for grading gray scale of an image, and a readable storage medium, so as to solve the problem that the gray scale is inaccurate due to interference of a series of problems such as lighting, blur, noise, etc. in the prior art. The problem of classification.
为解决现有技术问题,本发明采用的一个技术方案是:提供一种图像的灰阶分类方法,所述方法包括:In order to solve the prior art problem, a technical solution adopted by the present invention is to provide a grayscale classification method for an image, the method comprising:
获取待分类的图像;Obtain an image to be classified;
根据至少部分所述图像的像素的灰阶值对所述像素进行预分类得到至少两个目标类和至少一个中间类,按照所述像素的灰阶值排序时,每个所述中间类位于两个所述目标类之间;Pre-classifying the pixels according to a grayscale value of at least a portion of the pixels of the image to obtain at least two target classes and at least one intermediate class, each of the intermediate classes being located when sorted according to grayscale values of the pixels Between the target classes;
根据所述中间类中的所述像素的灰阶值和/或位置信息将所述中间类中的所述像素划分至相邻的两个所述目标类中的一个。The pixels in the intermediate class are divided into one of two adjacent target classes according to grayscale values and/or positional information of the pixels in the intermediate class.
根据本发明一具体实施例,所述根据至少部分所述图像的像素的灰阶值对所述像素进行预分类包括:According to an embodiment of the invention, the pre-classifying the pixels according to the grayscale value of the pixels of at least part of the image comprises:
使用聚类算法根据至少部分所述图像的像素的灰阶值将所述像素分为m类,所述m类中包括n个所述目标类和m-n个所述中间类,m和n均为整数且n<m≤2n-1。Using a clustering algorithm to divide the pixels into m classes according to grayscale values of at least a portion of pixels of the image, the m classes including n target classes and mn the intermediate classes, m and n are An integer and n < m ≤ 2n-1.
根据本发明一具体实施例,所述使用聚类算法根据至少部分所述图像的像素的灰阶值将所述像素分为m类之前,所述方法包括:According to an embodiment of the present invention, the method includes: before using the clustering algorithm to divide the pixel into m classes according to grayscale values of pixels of at least part of the image, the method includes:
采用灰度直方图的方式确定所述聚类算法中的初始聚类中心。The initial cluster center in the clustering algorithm is determined by means of a gray histogram.
根据本发明一具体实施例,所述采用灰度直方图的方式确定聚类算法中的初始聚类中心的步骤,包括:According to an embodiment of the present invention, the step of determining an initial clustering center in a clustering algorithm by using a gray histogram method includes:
采用灰度直方图的方式将待分类的所述图像的像素点分为m等份;Pixel points of the image to be classified are divided into m equal parts by using a gray histogram;
计算所有等份中的所有所述像素的平均灰阶值,以作为所述聚类算法中的初始聚类中心。The average grayscale value of all of the pixels in all aliquots is calculated as the initial clustering center in the clustering algorithm.
根据本发明一具体实施例,所述采用灰度直方图的方式确定所述聚类算法中的初始聚类中心的步骤之前,所述方法还包括:According to an embodiment of the present invention, before the step of determining an initial cluster center in the clustering algorithm by using a gray histogram, the method further includes:
对所述图像的所有像素进行平滑处理。Smoothing all pixels of the image.
根据本发明一具体实施例,所述根据所述中间类中的所述像素的灰阶值将所述中间类中的所述像素划分至相邻的两个所述目标类中的一个包括:According to an embodiment of the present invention, the dividing the pixel in the intermediate class into one of two adjacent target classes according to a grayscale value of the pixel in the intermediate class comprises:
将所述中间类的所述像素划分至相邻的两个所述目标类中聚类中心与所述中间类的所述像素的灰阶值差值更小的一个。The pixel of the intermediate class is divided into one of a cluster center of two adjacent target classes and a grayscale value difference of the pixels of the intermediate class.
根据本发明一具体实施例,所述相邻的两个所述目标类包括第一目标类和第二目标类,所述根据所述中间类中的所述像素的灰阶值和位置信息将所述中间类中的所述像素划分至相邻的两个所述目标类中的一个包括:According to an embodiment of the present invention, the two adjacent target classes include a first target class and a second target class, and the grayscale value and location information of the pixel according to the intermediate class are Dividing the pixel in the intermediate class to one of two adjacent target classes includes:
若所述中间类中的所述像素的所述灰阶值与所述第一目标类的聚类中心的差值小于与所述第二目标类的聚类中心的差值,且所述中间类中的所述像素的邻域像素中属于所述第一目标类的数量大于属于所述第二目标类的数量,则将所述中间类中的所述像素划分至所述第一目标类;If the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the first target class is smaller than a difference from a cluster center of the second target class, and the middle And the number of the neighboring pixels of the pixel in the class belonging to the first target class is greater than the number of the second target class, and the pixel in the intermediate class is divided into the first target class ;
若所述中间类中的所述像素的所述灰阶值与所述第二目标类的聚类中心的差值小于与所述第一目标类的聚类中心的差值,且所述中间类中的所述像素的邻域像素中属于所述第二目标类的数量大于属于所述第一目标类的数量,则将所述中间类中的所述像素划分至所述第一目标类;If the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the second target class is smaller than a difference from a cluster center of the first target class, and the middle The number of the neighboring pixels of the pixel in the class that belong to the second target class is greater than the number of the first target class, and the pixels in the intermediate class are divided into the first target class ;
否则判定所述中间类中的所述像素为孤立像素点。Otherwise it is determined that the pixels in the intermediate class are isolated pixel points.
根据本发明一具体实施例,所述判定所述中间类中的所述像素为孤立像素点之后进一步包括:According to an embodiment of the present invention, after determining that the pixel in the intermediate class is an isolated pixel, the method further includes:
对所述孤立像素点进行平滑之后再划分至相邻的两个所述目标类中的一个。The isolated pixel points are smoothed and then divided into one of the two adjacent target classes.
根据本发明一具体实施例,所述像素的邻域像素包括所述像素的邻域中的除所述像素之外的其他像素。 According to an embodiment of the invention, the neighborhood pixels of the pixel comprise pixels other than the pixels in the neighborhood of the pixel.
根据本发明一具体实施例,所述像素的邻域为以所述像素为中心的M*N大小的窗口,其中M和N为预设值,且为大于1的整数。According to an embodiment of the present invention, the neighborhood of the pixel is an M*N-sized window centered on the pixel, where M and N are preset values, and are integers greater than 1.
根据本发明一具体实施例,所述像素的邻域是根据边缘信息划分的。According to an embodiment of the invention, the neighborhood of the pixel is divided according to edge information.
为解决现有技术问题,本发明采用的另一个技术方案是:提供一种图像的灰阶分类装置,包括至少一个处理器,单独或协同工作,所述处理器用于执行指令以实现上述所述的方法。In order to solve the prior art problem, another technical solution adopted by the present invention is to provide an image gray scale classification device, including at least one processor, which operates separately or in cooperation, and the processor is configured to execute instructions to implement the foregoing Methods.
为解决现有技术问题,本发明采用的又一个技术方案是:提供一种可读存储介质,存储有指令,所述指令被执行时实现上述所述的方法。In order to solve the prior art problem, another technical solution adopted by the present invention is to provide a readable storage medium storing instructions which, when executed, implement the method described above.
本发明的有益效果是:区别于现有技术的情况,本发明提供的图像的灰阶分类方法先进行预分类,再根据预分类的结果将中间类的像素精确分类至目标类中,从而能够有效提高分类的精确度,且打光不均匀,噪声等问题将分类方法局部使用也可解决问题。The beneficial effects of the present invention are: different from the prior art, the gray-scale classification method of the image provided by the present invention is pre-classified, and then the pixels of the intermediate class are accurately classified into the target class according to the result of the pre-classification, thereby being able to accurately classify the pixels of the intermediate class into the target class. Effectively improve the accuracy of the classification, and the uneven lighting, noise and other problems can also solve the problem by using the classification method locally.
【附图说明】 [Description of the Drawings]
图1是本发明图像的灰阶分类方法一实施方式的流程示意图;1 is a schematic flow chart of an embodiment of a gray scale classification method for an image of the present invention;
图2是本发明图像的灰阶分类方法另一实施方式的流程示意图;2 is a schematic flow chart of another embodiment of a gray scale classification method for an image of the present invention;
图3是本发明图像灰阶分类装置一实施方式的结构示意图;3 is a schematic structural diagram of an embodiment of an image gray scale classification device according to the present invention;
图4是本发明可读存储介质实施方式的结构示意图。4 is a schematic block diagram of an embodiment of a readable storage medium of the present invention.
【具体实施方式】【Detailed ways】
下面将结合本发明实施方式中的附图,对本发明实施方式中的技术方案进行清楚、完整地描述,显然,所描述的实施方式仅仅是本发明一部分实施方式,而不是全部的实施方式。基于本发明中的实施方式,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施方式,均属于本发明保护的范围。The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
参见图1,图1是本发明实施方式提供的图像灰阶分类方法的步骤流程示意图。本发明实施方式提供的图像的灰阶分类方法能用于较为复杂的场景,使得在进行灰阶分类时,不受打光、模糊、噪声等系列问题的干扰而正确进行灰阶分类。方法包括:Referring to FIG. 1 , FIG. 1 is a schematic flow chart of steps of an image gray scale classification method according to an embodiment of the present invention. The gray-scale classification method of the image provided by the embodiment of the present invention can be applied to a relatively complicated scene, so that gray-scale classification is correctly performed when the gray-scale classification is performed without interference of a series of problems such as lighting, blur, and noise. Methods include:
步骤S101,获取待分类的图像。Step S101: Acquire an image to be classified.
可以理解,该待分类的图像可以是一个完整图像,也可以是从完整的图像截取下来的局部图像,例如,将待处理的完整的图像划分为多个窗口,选取其中至少一个窗口的局部图像作为待分类的图像。It can be understood that the image to be classified may be a complete image, or may be a partial image taken from a complete image, for example, dividing a complete image to be processed into a plurality of windows, and selecting a partial image of at least one of the windows. As an image to be classified.
步骤S102,根据图像的至少部分像素的灰阶值对像素进行预分类得到至少两个目标类和至少一个中间类,按照像素的灰阶值排序时,每个中间类位于两个目标类之间。Step S102, pre-classifying the pixels according to the grayscale value of at least part of the pixels of the image to obtain at least two target classes and at least one intermediate class. When sorting according to the grayscale value of the pixels, each intermediate class is located between the two target classes. .
在一实施方式中,根据至少部分图像的像素的灰阶值对像素进行预分类包括:In an embodiment, pre-classifying the pixels according to the grayscale values of the pixels of at least part of the image comprises:
使用聚类算法根据至少部分图像的像素的灰阶值将像素分为m类,m类中包括n个目标类和m-n个中间类,m和n均为整数且n<m≤2n-1。例如m取值为5时,可以包括3个目标类和2个中间类,也可以包括4个目标类和1个中间类。The clustering algorithm is used to classify the pixels into m classes according to the grayscale values of the pixels of at least part of the image, and m classes include n target classes and m-n intermediate classes, m and n are integers and n<m≤2n-1. For example, when m is 5, it may include 3 target classes and 2 intermediate classes, and may also include 4 target classes and 1 intermediate class.
可以理解,目标类和中间类的数量可以根据需求进行相应的调整,可以每两个目标类中均设有一中间类,也可以在任意两个目标类中夹设一中间类,其中,中间类中的像素将划分至与其相邻的两个目标类中的一个,详细划分方法下文介绍。It can be understood that the number of target classes and intermediate classes can be adjusted according to requirements, and an intermediate class can be set in every two target classes, or an intermediate class can be set in any two target classes, wherein the intermediate class The pixels in the picture will be divided into one of the two target classes adjacent to it, and the detailed division method is described below.
本实施例中,聚类算法指的是k-means 算法,当然,在其它实施方式中,聚类算法可以是其它算法,比如k-medoids算法等。In this embodiment, the clustering algorithm refers to k-means. Algorithm, of course, in other embodiments, the clustering algorithm may be other algorithms, such as the k-medoids algorithm.
步骤S103,根据中间类中的像素的灰阶值和/或位置信息将中间类中的像素划分至相邻的两个目标类中的一个。Step S103, the pixels in the intermediate class are divided into one of the adjacent two target classes according to the grayscale value and/or the position information of the pixels in the intermediate class.
例如,m取值为3,n取值为2,即根据像素的灰阶值的大小将待分类的图像的像素点分为三类,分别为第一类、第二类、第三类,其中,第一类及第三类为目标类,而第二类为中间类,此时,则根据第二类中的像素的灰阶值或/和像素点的位置信息将第二类中的像素归类至第一类或第三类。For example, the value of m is 3, and the value of n is 2, that is, the pixels of the image to be classified are classified into three categories according to the grayscale value of the pixel, which are the first class, the second class, and the third class, respectively. Wherein the first class and the third class are target classes, and the second class is an intermediate class. In this case, according to the grayscale value of the pixel in the second class or/and the position information of the pixel point, the second class is Pixels are classified into the first or third class.
又如,m取值为5时,n取值为4,则根据像素的灰阶值的大小将待分类的图像的像素点分为五类,分别为第一类、第二类、第三类、第四类以及第五类,其中,第一类、第二类、第三类以及第五类为目标类,第四类为中间类时,则根据第四类中的像素的灰阶值或/和像素点的位置信息将第四类中的像素归类至第三类或第五类,而第一类及第二类则保持为原有的像素。For another example, when m is 5, and n is 4, the pixels of the image to be classified are classified into five categories according to the grayscale value of the pixel, which are first, second, and third. Class, fourth class, and fifth class, wherein the first class, the second class, the third class, and the fifth class are target classes, and when the fourth class is an intermediate class, the grayscales of pixels according to the fourth class are The value or / and the position information of the pixel class classify the pixels in the fourth class into the third class or the fifth class, while the first class and the second class remain as the original pixels.
可以理解,中间类的选择可以根据相应的情况进行选择。It can be understood that the selection of the intermediate class can be selected according to the corresponding situation.
可以理解,先将图像的像素的灰阶值通过聚类算法进行预分类,使得同一类中的像素的灰阶值的大小相差较小,而不同类中的像素的灰阶值的大小相差较大,再通过将中间类的像素进行精确分类,从而使得像素的灰阶值分类的更为精确。It can be understood that the grayscale values of the pixels of the image are pre-classified by the clustering algorithm, so that the grayscale values of the pixels in the same class have a small difference in magnitude, and the grayscale values of the pixels in the same class are different. Large, and then by the precise classification of the pixels of the intermediate class, so that the grayscale value classification of the pixel is more accurate.
在本发明一实施方式中,根据中间类中的像素的灰阶值将中间类中的像素划分至相邻的两个目标类中的一个包括:将中间类的像素划分至相邻的两个目标类中聚类中心与中间类的像素的灰阶值差值更小的一个。In an embodiment of the invention, dividing the pixels in the intermediate class into one of the adjacent two target classes according to the grayscale value of the pixels in the intermediate class comprises: dividing the pixels of the intermediate class into two adjacent pixels The difference between the grayscale value of the cluster center and the pixel of the intermediate class in the target class is smaller.
其中,聚类算法是将图像的所有像素划分为多个聚类,同一聚类中的像素的灰阶值相近度较高,而不同聚类中的像素的灰阶值的相近度较小。本实施方式中,聚类中心可以是聚类中的像素的灰阶值的平均值。The clustering algorithm divides all pixels of the image into multiple clusters, and the grayscale values of the pixels in the same cluster are relatively close, while the grayscale values of the pixels in different clusters are relatively small. In this embodiment, the cluster center may be an average value of gray scale values of pixels in the cluster.
在本发明另一实施方式中,相邻的两个目标类包括第一目标类和第二目标类,根据中间类中的像素的灰阶值和位置信息将中间类中的像素划分至相邻的两个目标类中的一个包括:In another embodiment of the present invention, the two adjacent target classes include a first target class and a second target class, and the pixels in the intermediate class are divided into adjacent ones according to grayscale values and position information of pixels in the intermediate class. One of the two target classes includes:
若中间类中的像素的灰阶值与第一目标类的聚类中心的差值小于与第二目标类的聚类中心的差值,且中间类中的像素的邻域像素中属于第一目标类的数量大于属于第二目标类的数量,则将中间类中的像素划分至第一目标类;If the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the first target class is smaller than the difference between the cluster center of the second target class, and the neighborhood pixel of the pixel in the intermediate class belongs to the first If the number of target classes is greater than the number of the second target class, the pixels in the intermediate class are divided into the first target class;
若中间类中的像素的灰阶值与第二目标类的聚类中心的差值小于与第一目标类的聚类中心的差值,且中间类中的像素的邻域像素中属于第二目标类的数量大于属于第一目标类的数量,则将中间类中的像素划分至第一目标类;If the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the second target class is smaller than the difference between the cluster center of the first target class, and the neighborhood pixel of the pixel in the intermediate class belongs to the second If the number of target classes is greater than the number of the first target class, the pixels in the intermediate class are divided into the first target class;
否则判定中间类中的像素为孤立像素点。Otherwise, the pixels in the intermediate class are determined to be isolated pixels.
其中,像素的邻域像素包括像素的邻域中的除像素之外的其他像素,像素的邻域为以像素为中心的M*N大小的窗口,其中M和N为预设值,且为大于1的整数。像素的邻域也可以是根据边缘信息划分的。The neighboring pixels of the pixel include pixels other than the pixel in the neighborhood of the pixel, and the neighborhood of the pixel is a window of M*N size centered on the pixel, where M and N are preset values, and An integer greater than one. The neighborhood of the pixel can also be divided according to the edge information.
本实施方式中,位置信息具体是指邻域像素的分类信息,即邻域像素属于第一目标类的数量和属于第二目标类的数量。In this embodiment, the location information specifically refers to the classification information of the neighboring pixels, that is, the number of the neighboring pixels belonging to the first target class and the number belonging to the second target class.
可以理解,结合像素的灰阶值以及位置信息进行分类,可以确保待分类的像素周围所有方向上包含的边缘信息,从而进一步提高分类的精确度。It can be understood that combining the grayscale values of the pixels and the position information for classification can ensure the edge information contained in all directions around the pixels to be classified, thereby further improving the accuracy of the classification.
在本发明一实施方式中,判定中间类中的像素为孤立像素点之后进一步包括:In an embodiment of the present invention, after determining that the pixels in the intermediate class are isolated pixel points, the method further includes:
对孤立像素点进行平滑之后再划分至相邻的两个目标类中的一个。Smoothing isolated pixels and then dividing them into one of the two adjacent target classes.
其中,平滑处理可以是均值滤波、中值滤波、高斯滤波或者双边滤波中的一种。The smoothing process may be one of mean filtering, median filtering, Gaussian filtering, or bilateral filtering.
可以理解,孤立像素点进行平滑后,可以根据孤立像素的灰阶值进行划分,也可以根据孤立像素的灰阶值和该孤立像素点的位置信息进行划分。It can be understood that after the isolated pixel is smoothed, it may be divided according to the grayscale value of the isolated pixel, or may be divided according to the grayscale value of the isolated pixel and the position information of the isolated pixel.
可以理解,对孤立像素点进行平滑处理,可以有效解决该待分类的像素打光不均匀、噪声等问题,从而该孤立像素点再次进行分类时更为精确。It can be understood that smoothing the isolated pixel points can effectively solve the problem of uneven lighting, noise, and the like of the pixel to be classified, so that the isolated pixel points are more accurate when classified again.
在本发明一实施方式中,使用聚类算法根据至少部分图像的像素的灰阶值将像素分为m类之前,方法包括:In an embodiment of the present invention, the clustering algorithm is used to divide the pixels into m classes according to the grayscale values of the pixels of at least part of the image, and the method includes:
采用灰度直方图的方式确定聚类算法中的初始聚类中心。The initial clustering center in the clustering algorithm is determined by using a gray histogram.
请参阅图2,采用灰度直方图的方式确定聚类算法中的初始聚类中心的步骤,包括:Referring to FIG. 2, the steps of determining the initial cluster center in the clustering algorithm by using a gray histogram method include:
步骤S201,采用灰度直方图的方式将待分类的图像的像素点分为m等份;Step S201, dividing the pixel points of the image to be classified into m equal parts by using a gray histogram;
步骤S202,计算所有等份中的所有像素的平均灰阶值,以作为聚类算法中的初始聚类中心。Step S202, calculating an average grayscale value of all pixels in all the equal parts as an initial clustering center in the clustering algorithm.
可以理解,灰度直方图表示图象中具有每种灰阶值的像素的个数,反映图象中每种灰阶出现的频率,其横坐标表示图像中各个像素的灰阶值,纵坐标表示各个灰阶值上图像各个像素点出现的频率。通常在聚类算法中,初始聚类中心是任意选取的,而本实施方式通过采用灰度直方图的方式将像素分为m等份,且可以将每一等份中的平均灰阶值作为聚类算法中的初始聚类中心,与任意选择初始聚类中心相比,采用灰度直方图的方式确定聚类算法中的初始聚类中心能有效提高分类的精确度。It can be understood that the gray histogram represents the number of pixels having each gray scale value in the image, reflecting the frequency of occurrence of each gray scale in the image, and the abscissa indicates the gray scale value of each pixel in the image, and the ordinate. Indicates the frequency at which each pixel of the image appears on each grayscale value. Generally, in the clustering algorithm, the initial clustering center is arbitrarily selected, and in this embodiment, the pixels are divided into m equal parts by using a gray histogram, and the average grayscale value in each aliquot can be used as In the initial clustering center in the clustering algorithm, compared with the arbitrarily selected initial clustering center, determining the initial clustering center in the clustering algorithm by using the gray histogram can effectively improve the classification accuracy.
在本发明一实施方式中,采用灰度直方图的方式确定聚类算法中的初始聚类中心的步骤之前,方法还包括:In an embodiment of the present invention, before the step of determining the initial cluster center in the clustering algorithm by using a gray histogram, the method further includes:
对图像的所有像素进行平滑处理。Smooth all pixels of the image.
可以理解,在对图像的像素进行预分类前,对所有像素进行平滑处理,在后续进行分类时,能够解决该图像中的所有像素打光不均匀、噪声等问题,从而有效提高分类的精确度。It can be understood that before the pixels of the image are pre-classified, all the pixels are smoothed, and when the classification is performed later, the problem of uneven illumination and noise of all the pixels in the image can be solved, thereby effectively improving the accuracy of the classification. .
请参阅图3,本发明图像的灰阶分类装置一实施方式包括:处理器110。图中只画出了一个处理器110,实际数量可以更多。处理器110可以单独或者协同工作。Referring to FIG. 3, an embodiment of a grayscale classification device for an image of the present invention includes a processor 110. Only one processor 110 is shown in the figure, and the actual number can be more. The processor 110 can work alone or in concert.
处理器110控制对图像的灰阶分类的操作,处理器110还可以称为CPU(Central Processing Unit,中央处理单元)。处理器110可能是一种集成电路芯片,具有信号序列的处理能力。处理器110还可以是通用处理器、数字信号序列处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The processor 110 controls the operation of grayscale classification of images, and the processor 110 may also be referred to as a CPU (Central Processing). Unit, central processing unit). Processor 110 may be an integrated circuit chip with the processing capabilities of a signal sequence. The processor 110 can also be a general purpose processor, a digital signal sequence processor (DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware. Component. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
处理器110用于执行指令以实现本发明图像的灰阶分类方法。The processor 110 is operative to execute instructions to implement a grayscale classification method of the image of the present invention.
请参阅图4,本发明可读存储介质一实施方式包括存储器310,存储器310存储有指令,该指令被执行时实现本发明图像的灰阶分类方法。Referring to FIG. 4, an embodiment of the readable storage medium of the present invention includes a memory 310 that stores instructions that, when executed, implement a grayscale classification method of an image of the present invention.
存储器310可以包括只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、闪存(Flash Memory)、硬盘、光盘等。The memory 310 can include a read only memory (ROM, Read-Only) Memory), Random Access Memory (RAM), Flash Memory, hard disk, optical disk, etc.
区别于现有技术,本发明实施方式提供的灰阶分类方法先进行预分类,再根据预分类的结果将中间类的像素精确分类至目标类中,从而能够有效提高分类的精确度,且打光不均匀,噪声等问题将分类方法局部使用也可解决问题。Different from the prior art, the gray-scale classification method provided by the embodiment of the present invention first pre-classifies, and then accurately classifies the pixels of the intermediate class into the target class according to the result of the pre-classification, thereby effectively improving the accuracy of the classification, and playing Problems such as uneven light, noise, etc. can also solve the problem by using the classification method locally.
以上仅为本发明的实施方式,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围。 The above is only the embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformation made by the specification and the drawings of the present invention may be directly or indirectly applied to other related technical fields. The same is included in the scope of patent protection of the present invention.

Claims (13)

  1. 一种图像的灰阶分类方法,其特征在于,所述方法包括:A grayscale classification method for an image, the method comprising:
    获取待分类的图像;Obtain an image to be classified;
    根据所述图像的至少部分像素的灰阶值对所述像素进行预分类得到至少两个目标类和至少一个中间类,按照所述像素的灰阶值排序时,每个所述中间类位于两个所述目标类之间;Pre-classifying the pixels according to grayscale values of at least part of the pixels of the image to obtain at least two target classes and at least one intermediate class. When the grayscale values of the pixels are sorted, each of the intermediate classes is located at two Between the target classes;
    根据所述中间类中的所述像素的灰阶值和/或位置信息将所述中间类中的所述像素划分至相邻的两个所述目标类中的一个。The pixels in the intermediate class are divided into one of two adjacent target classes according to grayscale values and/or positional information of the pixels in the intermediate class.
  2. 根据权利要求1所述的方法,其特征在于,The method of claim 1 wherein
    所述根据至少部分所述图像的像素的灰阶值对所述像素进行预分类包括:The pre-sorting the pixels according to a grayscale value of at least a portion of the pixels of the image includes:
    使用聚类算法根据至少部分所述图像的像素的灰阶值将所述像素分为m类,所述m类中包括n个所述目标类和m-n个所述中间类,m和n均为整数且n<m≤2n-1。Using a clustering algorithm to divide the pixels into m classes according to grayscale values of at least a portion of pixels of the image, the m classes including n target classes and mn the intermediate classes, m and n are An integer and n < m ≤ 2n-1.
  3. 根据权利要求2所述的方法,其特征在于,所述使用聚类算法根据至少部分所述图像的像素的灰阶值将所述像素分为m类之前,所述方法包括:The method according to claim 2, wherein said using a clustering algorithm to divide said pixels into m classes according to grayscale values of at least a portion of said pixels of said image, said method comprising:
    采用灰度直方图的方式确定所述聚类算法中的初始聚类中心。The initial cluster center in the clustering algorithm is determined by means of a gray histogram.
  4. 根据权利要求3所述的方法,其特征在于,所述采用灰度直方图的方式确定聚类算法中的初始聚类中心的步骤,包括:The method according to claim 3, wherein the step of determining an initial cluster center in the clustering algorithm by using a gray histogram comprises:
    采用灰度直方图的方式将待分类的所述图像的像素点分为m等份;Pixel points of the image to be classified are divided into m equal parts by using a gray histogram;
    计算所有等份中的所有所述像素的平均灰阶值,以作为所述聚类算法中的初始聚类中心。The average grayscale value of all of the pixels in all aliquots is calculated as the initial clustering center in the clustering algorithm.
  5. 根据权利要求3所述的方法,其特征在于,所述采用灰度直方图的方式确定所述聚类算法中的初始聚类中心的步骤之前,所述方法还包括:The method according to claim 3, wherein before the step of determining the initial cluster center in the clustering algorithm by means of a gray histogram, the method further comprises:
    对所述图像的所有像素进行平滑处理。Smoothing all pixels of the image.
  6. 根据权利要求1所述的方法,其特征在于,所述根据所述中间类中的所述像素的灰阶值将所述中间类中的所述像素划分至相邻的两个所述目标类中的一个包括:The method according to claim 1, wherein said dividing said pixels in said intermediate class into two adjacent said target classes according to a grayscale value of said pixels in said intermediate class One of them includes:
    将所述中间类的所述像素划分至相邻的两个所述目标类中聚类中心与所述中间类的所述像素的灰阶值差值更小的一个。The pixel of the intermediate class is divided into one of a cluster center of two adjacent target classes and a grayscale value difference of the pixels of the intermediate class.
  7. 根据权利要求1所述的方法,其特征在于,所述相邻的两个所述目标类包括第一目标类和第二目标类,所述根据所述中间类中的所述像素的灰阶值和位置信息将所述中间类中的所述像素划分至相邻的两个所述目标类中的一个包括:The method according to claim 1, wherein said two adjacent target classes comprise a first target class and a second target class, said gray scale according to said pixels in said intermediate class The value and location information divides the pixels in the intermediate class into one of two adjacent target classes including:
    若所述中间类中的所述像素的所述灰阶值与所述第一目标类的聚类中心的差值小于与所述第二目标类的聚类中心的差值,且所述中间类中的所述像素的邻域像素中属于所述第一目标类的数量大于属于所述第二目标类的数量,则将所述中间类中的所述像素划分至所述第一目标类;If the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the first target class is smaller than a difference from a cluster center of the second target class, and the middle And the number of the neighboring pixels of the pixel in the class belonging to the first target class is greater than the number of the second target class, and the pixel in the intermediate class is divided into the first target class ;
    若所述中间类中的所述像素的所述灰阶值与所述第二目标类的聚类中心的差值小于与所述第一目标类的聚类中心的差值,且所述中间类中的所述像素的邻域像素中属于所述第二目标类的数量大于属于所述第一目标类的数量,则将所述中间类中的所述像素划分至所述第一目标类;If the difference between the grayscale value of the pixel in the intermediate class and the cluster center of the second target class is smaller than a difference from a cluster center of the first target class, and the middle The number of the neighboring pixels of the pixel in the class that belong to the second target class is greater than the number of the first target class, and the pixels in the intermediate class are divided into the first target class ;
    否则判定所述中间类中的所述像素为孤立像素点。Otherwise it is determined that the pixels in the intermediate class are isolated pixel points.
  8. 根据权利要求7所述的方法,其特征在于,所述判定所述中间类中的所述像素为孤立像素点之后进一步包括:The method according to claim 7, wherein the determining that the pixel in the intermediate class is an isolated pixel further comprises:
    对所述孤立像素点进行平滑之后再划分至相邻的两个所述目标类中的一个。The isolated pixel points are smoothed and then divided into one of the two adjacent target classes.
  9. 根据权利要求7所述的方法,其特征在于,The method of claim 7 wherein:
    所述像素的邻域像素包括所述像素的邻域中的除所述像素之外的其他像素。The neighborhood pixels of the pixel include pixels other than the pixel in the neighborhood of the pixel.
  10. 根据权利要求9所述的方法,其特征在于,The method of claim 9 wherein:
    所述像素的邻域为以所述像素为中心的M*N大小的窗口,其中M和N为预设值,且为大于1的整数。The neighborhood of the pixel is an M*N-sized window centered on the pixel, where M and N are preset values and are integers greater than one.
  11. 根据权利要求9所述的方法,其特征在于,The method of claim 9 wherein:
    所述像素的邻域是根据边缘信息划分的。The neighborhood of the pixel is divided according to edge information.
  12. 一种图像的灰阶分类装置,其特征在于,包括至少一个处理器,单独或协同工作,所述处理器用于执行指令以实现如权利要求1-11中任一项所述的方法。A grayscale classification device for an image, comprising at least one processor, operating alone or in cooperation, for executing instructions to implement the method of any of claims 1-11.
  13. 一种可读存储介质,存储有指令,其特征在于,所述指令被执行时实现如权利要求1-11中任一项所述的方法。A readable storage medium storing instructions, wherein the instructions are executed to implement the method of any of claims 1-11.
PCT/CN2017/113901 2017-11-30 2017-11-30 Image gray scale classification method and device, and readable storage medium WO2019104627A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201780037500.4A CN109416749B (en) 2017-11-30 2017-11-30 Image gray scale classification method and device and readable storage medium
PCT/CN2017/113901 WO2019104627A1 (en) 2017-11-30 2017-11-30 Image gray scale classification method and device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/113901 WO2019104627A1 (en) 2017-11-30 2017-11-30 Image gray scale classification method and device, and readable storage medium

Publications (1)

Publication Number Publication Date
WO2019104627A1 true WO2019104627A1 (en) 2019-06-06

Family

ID=65463036

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/113901 WO2019104627A1 (en) 2017-11-30 2017-11-30 Image gray scale classification method and device, and readable storage medium

Country Status (2)

Country Link
CN (1) CN109416749B (en)
WO (1) WO2019104627A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161221A (en) * 2019-12-13 2020-05-15 深圳市瑞沃德生命科技有限公司 Focus evaluation method, device and system
CN112215792A (en) * 2019-07-12 2021-01-12 环球晶圆股份有限公司 Method for calculating number of sheets
CN115797472A (en) * 2023-02-03 2023-03-14 山东百成新材料科技股份有限公司 Intelligent screening method for modified asphalt production
CN115829883A (en) * 2023-02-16 2023-03-21 汶上县恒安钢结构有限公司 Surface image denoising method for dissimilar metal structural member

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113382246B (en) * 2021-04-20 2024-03-01 浙江大华技术股份有限公司 Encoding method, encoding device, electronic device and computer readable storage medium
CN116385446B (en) * 2023-06-06 2023-08-15 山东德圣源新材料有限公司 Crystal impurity detection method for boehmite production

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102903127A (en) * 2012-09-05 2013-01-30 天津光电高斯通信工程技术有限公司 Freight image segmentation algorithm based on adaptive seed selection
CN103473786A (en) * 2013-10-13 2013-12-25 西安电子科技大学 Gray level image segmentation method based on multi-objective fuzzy clustering
US20160210523A1 (en) * 2015-01-16 2016-07-21 Sony Corporation Image processing system for cluttered scenes and method of operation thereof

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103034858B (en) * 2012-11-30 2016-04-13 宁波大学 A kind of secondary cluster segmentation method of satellite cloud picture
WO2016075096A1 (en) * 2014-11-10 2016-05-19 Ventana Medical Systems, Inc. Classifying nuclei in histology images
CN104537673B (en) * 2015-01-09 2017-10-24 西安电子科技大学 Infrared Image Segmentation based on multi thresholds and adaptive fuzzy clustering
US9652829B2 (en) * 2015-01-22 2017-05-16 Samsung Electronics Co., Ltd. Video super-resolution by fast video segmentation for boundary accuracy control
CN105913040B (en) * 2016-04-27 2019-04-23 重庆邮电大学 The real-time pedestrian detecting system of dual camera under the conditions of noctovision

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102903127A (en) * 2012-09-05 2013-01-30 天津光电高斯通信工程技术有限公司 Freight image segmentation algorithm based on adaptive seed selection
CN103473786A (en) * 2013-10-13 2013-12-25 西安电子科技大学 Gray level image segmentation method based on multi-objective fuzzy clustering
US20160210523A1 (en) * 2015-01-16 2016-07-21 Sony Corporation Image processing system for cluttered scenes and method of operation thereof

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112215792A (en) * 2019-07-12 2021-01-12 环球晶圆股份有限公司 Method for calculating number of sheets
CN112215792B (en) * 2019-07-12 2024-01-19 环球晶圆股份有限公司 Sheet number calculating method
CN111161221A (en) * 2019-12-13 2020-05-15 深圳市瑞沃德生命科技有限公司 Focus evaluation method, device and system
CN111161221B (en) * 2019-12-13 2023-09-26 深圳市瑞沃德生命科技有限公司 Focusing evaluation method, device and system
CN115797472A (en) * 2023-02-03 2023-03-14 山东百成新材料科技股份有限公司 Intelligent screening method for modified asphalt production
CN115829883A (en) * 2023-02-16 2023-03-21 汶上县恒安钢结构有限公司 Surface image denoising method for dissimilar metal structural member

Also Published As

Publication number Publication date
CN109416749B (en) 2022-04-15
CN109416749A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
WO2019104627A1 (en) Image gray scale classification method and device, and readable storage medium
JP4746050B2 (en) Method and system for processing video data
WO2021057848A1 (en) Network training method, image processing method, network, terminal device and medium
WO2014194620A1 (en) Method, module, apparatus and system for extracting, training and detecting image characteristic
WO2013081415A1 (en) Method and system for generating animated art effects on static images
WO2019104616A1 (en) Image processing method and device and computer-readable storage medium
TW200841712A (en) Programmable pattern matching device
WO2020197268A1 (en) Method and electronic device for processing facial images
WO2022000861A1 (en) Image tampering area locating method and apparatus, and storage medium
CN106331746B (en) Method and apparatus for identifying watermark location in video file
CN107784660A (en) Image processing method, image processing system and defect detecting device
US8811741B2 (en) Differentiated processing method of image zones
WO2021225296A1 (en) Method for explainable active learning, to be used for object detector, by using deep encoder and active learning device using the same
CN114418898A (en) Data enhancement method based on target overlapping degree calculation and self-adaptive adjustment
AU2021240277A1 (en) Methods and apparatuses for classifying game props and training neural network
Wayalun et al. Adaptive image enhancement for automatic complicated G-band chromosome number determination
WO2019208869A1 (en) Method and apparatus for detecting facial features by using learning
CN112347899B (en) Moving object image extraction method, device, equipment and storage medium
CN115598138B (en) Power control circuit board flaw detection method and system based on significance detection
CN106845534B (en) Method and device for quickly realizing support vector machine based on data compression expression
TWI830982B (en) Image recognition method based on texture classification, electronic device, and storage medium
WO2021127963A1 (en) Image content classification
Doudkin et al. Objects identification on the color layout images of the integrated circuit layers
TWI755176B (en) Method and device for calculating cell distribution density, electronic device, and storage unit
CN110427980B (en) Method for judging existence of salient object by fusing low-level and high-level features

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17933822

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17933822

Country of ref document: EP

Kind code of ref document: A1