JP2023126059A - Image processing apparatus, image processing method, and program - Google Patents

Image processing apparatus, image processing method, and program Download PDF

Info

Publication number
JP2023126059A
JP2023126059A JP2022030517A JP2022030517A JP2023126059A JP 2023126059 A JP2023126059 A JP 2023126059A JP 2022030517 A JP2022030517 A JP 2022030517A JP 2022030517 A JP2022030517 A JP 2022030517A JP 2023126059 A JP2023126059 A JP 2023126059A
Authority
JP
Japan
Prior art keywords
image
color value
positive integer
color
value
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
JP2022030517A
Other languages
Japanese (ja)
Inventor
喜英 中村
Yoshihide Nakamura
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to JP2022030517A priority Critical patent/JP2023126059A/en
Publication of JP2023126059A publication Critical patent/JP2023126059A/en
Pending legal-status Critical Current

Links

Images

Abstract

To provide an image processing apparatus capable of representing a medical or inspection image in three primary colors, an image processing method, and a program.SOLUTION: An image processing method includes: a step (S1) of acquiring grayscale and brightness information of a DICOM image; a step (S2) of calculating an expanded color value; a step (S3) of dividing the expanded color value by the number of expansions to calculate a quotient and a remainder; a step (S4) of determining a sorting type on the basis of the remainder; and a step (S5) of setting the quotient calculated in the step 3 (S3) as a reference grayscale value, and selecting any of the reference grayscale value, the reference grayscale value plus α, and the reference grayscale value plus β, for color values of blue, red and green.SELECTED DRAWING: Figure 1

Description

本発明は、明度情報の画像を処理するための画像処理装置、画像処理方法およびプログラムに関する。 The present invention relates to an image processing device, an image processing method, and a program for processing images with brightness information.

従来より、DICOM(Digital Imaging and Communications in Medicine)規格に準拠した医用画像により、レントゲン写真等の医療用画像を保存することが行われている(特許文献1参照)。 2. Description of the Related Art Conventionally, medical images such as X-ray photographs have been stored using medical images conforming to the DICOM (Digital Imaging and Communications in Medicine) standard (see Patent Document 1).

特開2019―135564号公報Japanese Patent Application Publication No. 2019-135564

本発明の目的は、医療用または検査用画像を色の3原色で表現し得る画像処理装置、画像処理方法およびプログラムを提供することにある。 An object of the present invention is to provide an image processing device, an image processing method, and a program that can express medical or inspection images using three primary colors.

1.画像処理装置
本発明の第1の画像処理装置は、
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理装置であって、
式1に基づき拡張後色値を算出する拡張後色値算出部と、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
前記拡張後色値算出部が算出した拡張後色値を拡張数で除し、商と余りを算出する除算部と、
前記余りに基づいて振り分けタイプを決定するタイプ決定部と、
前記タイプ決定部が決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、前前記除算部で算出された商を前記第1の色の基準色値として設定し、前記第1の色以外の他の色の色値は、前記基準色値、(前記基準色値+正の整数α(αは正の整数))および(前記基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与する色値振り分け部と、を含む。
1. Image processing device The first image processing device of the present invention includes:
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing device that converts into a second image,
an expanded color value calculation unit that calculates an expanded color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
a division unit that divides the expanded color value calculated by the expanded color value calculation unit by an expansion number and calculates a quotient and a remainder;
a type determining unit that determines a distribution type based on the remainder;
The gradation values of the first to third colors are assigned according to the distribution type determined by the type determining unit, and the quotient calculated by the dividing unit is used as the reference for the first color. The color value of the other color other than the first color is set as the reference color value, (the reference color value + positive integer α (α is a positive integer)) and (the reference color value - a color value distribution unit that assigns at least one type selected from the group of positive integers β (β is a positive integer);

本発明の第2の画像処理装置は、
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理装置であって、
式1に基づき拡張後色値を算出する拡張後色値算出部と、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
前記拡張後色値算出部が算出した拡張後色値を拡張数で除し、商と余りを算出する除算部と、
前記余りに基づいて振り分けタイプを決定するタイプ決定部と、
前記タイプ決定部が決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、式2に基づき算出した基本階調値を第1の色の階調値とし、前記第1の色以外の他の色の階調値は、(前記基本階調値、前記基本階調値+正の整数α)および(前記基本階調値-正の整数β)の群から選択される少なくとも一種を付与する色値振り分け部と、を含む。
(式2)基本階調値=任意に設定した又は導出した第2の画像の階調-前記除算部で算出された商
The second image processing device of the present invention includes:
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing device that converts into a second image,
an expanded color value calculation unit that calculates an expanded color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
a division unit that divides the expanded color value calculated by the expanded color value calculation unit by an expansion number and calculates a quotient and a remainder;
a type determining unit that determines a distribution type based on the remainder;
The gradation values of the first to third colors are assigned according to the distribution type determined by the type determining section, and the basic gradation value calculated based on formula 2 is assigned to the gradation of the first color. The gradation value of the other color other than the first color is (the basic gradation value, the basic gradation value + positive integer α) and (the basic gradation value - the positive integer β). ); and a color value distribution unit that assigns at least one color value selected from the group of:
(Formula 2) Basic gradation value = arbitrarily set or derived gradation of the second image - the quotient calculated by the division section

本発明の第3の画像処理装置は、
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理装置であって、
式1に基づき拡張後色値を算出する拡張後色値算出部と、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
前記拡張後色値算出部で算出された拡張後色値の整数から所定の数αを控除して得られた数を拡張数で除し、商と余りを算出する除算部と、
前記余りに基づいて振り分けタイプを決定するタイプ決定部と、
前記タイプ決定部が決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、前記除算部で算出された商を前記第1の色の基準色値として設定し、前記第1の色以外の他の色の色値は、前記基準色値、(前記基準色値+正の整数α(αは正の整数))および(前記基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与する色値振り分け部と、を含む。
The third image processing device of the present invention includes:
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing device that converts into a second image,
an expanded color value calculation unit that calculates an expanded color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
a division unit that calculates a quotient and a remainder by subtracting a predetermined number α from the integer of the expanded color value calculated by the expanded color value calculation unit and dividing the obtained number by the expanded number;
a type determining unit that determines a distribution type based on the remainder;
The gradation values of the first to third colors are assigned according to the distribution type determined by the type determining section, and the quotient calculated by the dividing section is used as the reference color of the first color. The color values of the other colors other than the first color are set as the reference color value, (the reference color value + a positive integer α (α is a positive integer)) and (the reference color value - a color value distribution unit that assigns at least one color value selected from the group of positive integers β (β is a positive integer).

2.画像処理方法
本発明の第1の画像処理方法は、
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理方法であって、
(A)拡張後色値算出部が、式1に基づき拡張後色値を算出する第1のステップと、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)前記除算部が、前記第1ステップにより得られた拡張後色値を拡張数で除し、商と余りを算出するステップと、
(C)タイプ決定部が、前記余りに基づいて振り分けタイプを決定する第3のステップと、
(D)前記色値振り分け部が、前記振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、前記ステップ(B)で算出された商を前記第1の色の基準色値として設定し、前記第1の色以外の他の色の色値は、前記基準色値、(前記基準色値+正の整数α(αは正の整数))および(前記基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与するステップと、を含む。
2. Image processing method The first image processing method of the present invention is
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing method for converting into a second image, the method comprising:
(A) a first step in which the extended color value calculation unit calculates the extended color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
(B) a step in which the division unit divides the expanded color value obtained in the first step by an expanded number, and calculates a quotient and a remainder;
(C) a third step in which the type determining unit determines a distribution type based on the remainder;
(D) a step in which the color value distribution unit assigns gradation values of the first to third colors according to the distribution type, and the quotient calculated in step (B) is assigned to the The color value of the other color other than the first color is set as the reference color value of the first color, the reference color value, (the reference color value + positive integer α (α is a positive integer)), and (the reference color value - a positive integer β (β is a positive integer)).

本発明の第2の画像処理方法は、
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理方法であって、
(A)拡張後色値算出部が、式1に基づき拡張後色値を算出する第1のステップと、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)除算部が、前記第1ステップで算出された拡張後色値を拡張数で除し、商と余りを算出するステップと、
(C)タイプ決定部が、前記余りに基づいて振り分けタイプを決定する第3のステップと、
(D)色値振り分け部が、前記振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、式2に基づき算出した基本階調値を第1の色の階調値とし、前記第1の色以外の他の色の階調値は、(前記基本階調値、前記基本階調値+正の整数α)および(前記基本階調値-正の整数β)の群から選択される少なくとも一種を付与するステップと、を含む。
(式2)基本階調値=任意に設定した又は導出した第2の画像の階調-前記ステップ(B)で算出された商
The second image processing method of the present invention is
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing method for converting into a second image, the method comprising:
(A) a first step in which the extended color value calculation unit calculates the extended color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
(B) a step in which the division unit divides the expanded color value calculated in the first step by the expanded number, and calculates a quotient and a remainder;
(C) a third step in which the type determining unit determines a distribution type based on the remainder;
(D) A step in which the color value distribution unit assigns gradation values of the first to third colors according to the distribution type, and the basic gradation value calculated based on Equation 2 is assigned to the first color. The gradation values of colors other than the first color are (the basic gradation value, the basic gradation value + positive integer α) and (the basic gradation value - positive integer α). and providing at least one type selected from the group of integers β).
(Formula 2) Basic tone value = arbitrarily set or derived tone of the second image - quotient calculated in step (B) above

本発明の第3の画像処理方法は、
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理方法であって、
(A)拡張後色値算出部が、式1に基づき拡張後色値を算出する第1のステップと、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)除算部が、前記第1ステップで算出された拡張後色値の整数から所定の数αを控除して得られた数を拡張数で除し、商と余りを算出するステップと、
(C)タイプ決定部が、前記余りに基づいて振り分けタイプを決定する第3のステップと、
(D)色値振り分け部が、前記振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、前記ステップ(B)で算出された商を前記第1の色の基準色値として設定し、前記第1の色以外の他の色の色値は、前記基準色値、(前記基準色値+正の整数α(αは正の整数))および(前記基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与するステップと、を含む。
The third image processing method of the present invention is
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing method for converting into a second image, the method comprising:
(A) a first step in which the extended color value calculation unit calculates the extended color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
(B) a step in which the division unit subtracts a predetermined number α from the integer of the expanded color value calculated in the first step, divides the obtained number by the expanded number, and calculates a quotient and a remainder;
(C) a third step in which the type determining unit determines a distribution type based on the remainder;
(D) A step in which the color value distribution unit assigns gradation values of the first to third colors according to the distribution type, and the quotient calculated in step (B) is assigned to the first to third colors. , and the color values of the other colors other than the first color are set as the reference color value, (the reference color value + positive integer α (α is a positive integer)) and ( the reference color value--a positive integer β (β is a positive integer)).

3.プログラム
本発明のプログラムは、本発明の画像処理方法をコンピュータに実行させるものである。
3. Program The program of the present invention causes a computer to execute the image processing method of the present invention.

本発明によれば、明度情報から構成される画像をRGBの色の3原色により近似グレー色で表現された画像を生成することができる。 According to the present invention, it is possible to generate an image composed of brightness information expressed in approximate gray color using the three primary colors of RGB.

実施の形態に係る画像処理装置の機能図である。FIG. 1 is a functional diagram of an image processing device according to an embodiment. 実施の形態に係る画像処理方法のフロー図である。FIG. 2 is a flow diagram of an image processing method according to an embodiment. 拡張例を説明するための図である。FIG. 7 is a diagram for explaining an extended example.

以下、本発明の好適な実施の形態について詳細に説明する。 Hereinafter, preferred embodiments of the present invention will be described in detail.

(画像処理装置)
画像処理装置10は、医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換するものである。
(Image processing device)
The image processing device 10 converts a first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), into first to third colors. This is to convert into a second image expressed in three primary colors.

画像処理装置10は、処理部12として、拡張後色値算出部12aと、除算部12bと、タイプ決定部12cと、色値振り分け部12dとを含むことができる。 The image processing device 10 can include, as the processing section 12, an expanded color value calculation section 12a, a division section 12b, a type determination section 12c, and a color value distribution section 12d.

拡張後色値算出部12aは、式1に基づき拡張後色値を算出するものであることができる。
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
mはたとえば4とすることができる。青色(B)を起点色(青色)とし、緑色(G)と赤色(R)を1bitで表現可能な階調は4階調となる(図3の左表)。拡張数(Exp)を3とした場合に、各bitの配色例を図3の右表に示す。
The extended color value calculation unit 12a may calculate the extended color value based on Equation 1.
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
m can be 4, for example. With blue (B) as the starting color (blue), there are four gradations that can express green (G) and red (R) with 1 bit (left table in FIG. 3). When the number of expansions (Exp) is 3, an example of the color scheme of each bit is shown in the right table of FIG.

除算部12bは、拡張後色値算出部12aが算出した拡張後色値を拡張数で除し、商と余りを算出するものであることができる。除算部12bは、拡張後色値算出部12aで算出された拡張後色値の整数から所定の数αを控除して得られた数を拡張数で除し、商と余りを算出するものであることができる。 The dividing unit 12b may divide the expanded color value calculated by the expanded color value calculating unit 12a by the expansion number, and calculate a quotient and a remainder. The division unit 12b subtracts a predetermined number α from the integer of the extended color value calculated by the extended color value calculation unit 12a, divides the obtained number by the extended number, and calculates the quotient and remainder. Something can happen.

タイプ決定部12cは、余りに基づいて振り分けタイプを決定するものであることができる。 The type determining unit 12c can determine the distribution type based on the remainder.

色値振り分け部12dは、タイプ決定部12cが決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、前除算部12bで算出された商を第1の色の基準色値として設定し、第1の色以外の他の色の色値は、基準色値、(基準色値+正の整数α(αは正の整数))および(基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与するものであることができる。 The color value distribution unit 12d assigns gradation values of the first to third colors according to the distribution type determined by the type determination unit 12c, and calculates the quotient calculated by the pre-divider 12b. Set as the standard color value of the first color, and the color values of other colors other than the first color are the standard color value, (standard color value + positive integer α (α is a positive integer)) and (standard color value + positive integer α (α is a positive integer)) At least one type selected from the group of color value - positive integer β (β is a positive integer) can be provided.

色値振り分け部12dは、タイプ決定部12cが決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、式2に基づき算出した基本階調値を第1の色の階調値とし、第1の色以外の他の色の階調値は、(基本階調値、基本階調値+正の整数α)および(基本階調値-正の整数β)の群から選択される少なくとも一種を付与するものであってもよい。 The color value distribution unit 12d assigns gradation values of the first to third colors according to the distribution type determined by the type determination unit 12c, and assigns gradation values of the first to third colors based on the basic gradation value calculated based on Equation 2. is the gradation value of the first color, and the gradation values of other colors other than the first color are (basic gradation value, basic gradation value + positive integer α) and (basic gradation value - positive At least one type selected from the group of integer β) may be provided.

色値振り分け部12dは、タイプ決定部12cが決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、除算部12bで算出された商を第1の色の基準色値として設定し、第1の色以外の他の色の色値は、基準色値、(基準色値+正の整数α(αは正の整数))および(基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与するものであってもよい。 The color value distribution section 12d assigns gradation values of the first to third colors according to the distribution type determined by the type determination section 12c, and divides the quotient calculated by the division section 12b into a gradation value of the first to third colors. Set as the reference color value of the first color, and the color values of other colors other than the first color are set as the reference color value, (standard color value + positive integer α (α is a positive integer)) and (standard color At least one type selected from the group of value - positive integer β (β is a positive integer) may be provided.

処理部12は、グレースケール算出部12eを含むことができる。グレースケール算出部12eは、たとえば式3に基づき、第1の画像の階調値から、グレースケール画像(たとえば8ビットグレースケール画像)の明度を算出することができる。
(式3)8ビットグレースケール画像の明度=第1の画像のピクセルの階調値×256/第1の画像のピクセルの階調
第1の画像は、たとえばDICOM画像とし、第2の画像は、たとえばRGB画像とすることができる。
The processing section 12 can include a gray scale calculation section 12e. The grayscale calculation unit 12e can calculate the brightness of a grayscale image (for example, an 8-bit grayscale image) from the gradation value of the first image based on Equation 3, for example.
(Formula 3) Brightness of 8-bit grayscale image = gradation value of pixels of first image x 256/gradation of pixels of first image The first image is, for example, a DICOM image, and the second image is , for example, an RGB image.

(画像処理装置の構成例)
画像処理装置10は、コンピュータから構成されることができる。処理部1212は、CPUなどの演算装置により実現することができる。記憶部14は、たとえば、ROMやハードディスクや外部記憶装置(CD、DVDなど)の公知の記憶装置に記憶させることができる。記憶部14は演算装置に独立して別体で構成されていても、演算装置内に構成されていてもよい。画像処理装置10は、1つのコンピュータから構成されていても、複数のコンピュータから構成されていてもよい。
(Example of configuration of image processing device)
The image processing device 10 can be composed of a computer. The processing unit 1212 can be implemented by a calculation device such as a CPU. The storage unit 14 can be stored in a known storage device such as a ROM, a hard disk, or an external storage device (CD, DVD, etc.), for example. The storage unit 14 may be configured separately from the arithmetic device, or may be configured within the arithmetic device. The image processing device 10 may be composed of one computer or a plurality of computers.

画像処理装置10に対して画像処理を実行させるプログラムは、たとえば、記憶部14に格納することができる。 A program that causes the image processing device 10 to perform image processing can be stored in the storage unit 14, for example.

(画像処理方法)
(1)第1の画像処理方法
第1の画像処理方法は、医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換するものである。
(Image processing method)
(1) First image processing method The first image processing method is a first image processing method for medical or inspection images expressed by brightness information of N gradations (N≧2n, n is a positive integer). This converts an image into a second image expressed in three primary colors: first to third colors.

第1の画像処理方法は、たとえば、次のステップを含む。
(A)拡張後色値算出部12aが、式1に基づき拡張後色値を算出する第1のステップ
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)除算部12bが、第1ステップにより得られた拡張後色値を拡張数で除し、商と余りを算出するステップ
(C)タイプ決定部12cが、余りに基づいて振り分けタイプを決定する第3のステップ
(D)色値振り分け部12dが、振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、ステップ(B)で算出された商を第1の色の基準色値として設定し、第1の色以外の他の色の色値は、基準色値、(基準色値+正の整数α(αは正の整数))および(基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与するステップ
The first image processing method includes, for example, the following steps.
(A) A first step in which the extended color value calculation unit 12a calculates the extended color value based on Equation 1. gradation of the second image obtained or derived x number of extensions)/brightness gradation of pixels of the first image (1≦number of extensions≦m, m is a positive integer)
(B) The dividing unit 12b divides the expanded color value obtained in the first step by the expansion number and calculates the quotient and remainder. (C) The type determining unit 12c determines the distribution type based on the remainder. Third step (D) This is a step in which the color value distribution unit 12d assigns gradation values of the first to third colors according to the distribution type, and the quotient calculated in step (B) is Set as the standard color value of the first color, and the color values of other colors other than the first color are the standard color value, (standard color value + positive integer α (α is a positive integer)) and (standard color value + positive integer α (α is a positive integer)) a step of providing at least one type selected from the group of color value - positive integer β (β is a positive integer);

(2)第2の画像処理方法
第2の画像処理方法は、医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換するものである。
(2) Second image processing method The second image processing method is a first image processing method that is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer). This converts an image into a second image expressed in three primary colors: first to third colors.

第2の画像処理方法は、たとえば、次のステップを含む。
(A)拡張後色値算出部12aが、式1に基づき拡張後色値を算出する第1のステップ
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)除算部12bが、第1ステップで算出された拡張後色値を拡張数で除し、商と余りを算出するステップ
(C)タイプ決定部12cが、余りに基づいて振り分けタイプを決定する第3のステップ
(D)色値振り分け部12dが、振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、式2に基づき算出した基本階調値を第1の色の階調値とし、第1の色以外の他の色の階調値は、(基本階調値、基本階調値+正の整数α)および(基本階調値-正の整数β)の群から選択される少なくとも一種を付与するステップ
(式2)基本階調値=任意に設定した又は導出した第2の画像の階調-ステップ(B)で算出された商
The second image processing method includes, for example, the following steps.
(A) A first step in which the extended color value calculation unit 12a calculates the extended color value based on Equation 1. gradation of the second image obtained or derived x number of extensions)/brightness gradation of pixels of the first image (1≦number of extensions≦m, m is a positive integer)
(B) A step in which the division unit 12b divides the expanded color value calculated in the first step by the expansion number and calculates a quotient and a remainder. (C) A type determination unit 12c determines a sorting type based on the remainder. Third step (D) is a step in which the color value distribution unit 12d assigns gradation values of the first to third colors according to the distribution type, and the basic gradation value calculated based on formula 2. is the gradation value of the first color, and the gradation values of other colors other than the first color are (basic gradation value, basic gradation value + positive integer α) and (basic gradation value - positive (Formula 2) Basic tone value = arbitrarily set or derived tone of the second image - quotient calculated in step (B)

(3)第3の画像処理方法
第3の画像処理方法は、医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換するものである。
(3) Third image processing method The third image processing method is a first image processing method for medical or inspection images expressed by brightness information of N gradations (N≧2n, n is a positive integer). This converts an image into a second image expressed in three primary colors: first to third colors.

第3の画像処理方法は、たとえば、次のステップを含む。
(A)拡張後色値算出部12aが、式1に基づき拡張後色値を算出する第1のステップ
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)除算部12bが、第1ステップで算出された拡張後色値の整数から所定の数αを控除して得られた数を拡張数で除し、商と余りを算出するステップ
(C)タイプ決定部12cが、余りに基づいて振り分けタイプを決定する第3のステップ
(D)色値振り分け部12dが、振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、ステップ(B)で算出された商を第1の色の基準色値として設定し、第1の色以外の他の色の色値は、基準色値、(基準色値+正の整数α(αは正の整数))および(基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与するステップ
The third image processing method includes, for example, the following steps.
(A) A first step in which the extended color value calculation unit 12a calculates the extended color value based on Equation 1. gradation of the second image obtained or derived x number of extensions)/brightness gradation of pixels of the first image (1≦number of extensions≦m, m is a positive integer)
(B) A step (C ) A third step in which the type determining unit 12c determines the distribution type based on the remainder; (D) the color value distribution unit 12d assigns gradation values of the first to third colors according to the distribution type; In this step, the quotient calculated in step (B) is set as the reference color value of the first color, and the color values of other colors other than the first color are set as the reference color value, (reference color value + a step of providing at least one type selected from the group of positive integer α (α is a positive integer)) and (reference color value - positive integer β (β is a positive integer));

上記の第1~第3の画像処理方法において、αはたとえば1~5、好ましくは1とすることができる。βはたとえば1~5、好ましくは1とすることができる。 In the first to third image processing methods described above, α can be, for example, 1 to 5, preferably 1. β can be, for example, 1 to 5, preferably 1.

(作用効果)
本実施の形態によれば、純粋にはグレースケール画像ではないものの、RGBのそれぞれの階調値を少しずらすようにすることで、あたかもグレースケール画像のように見えることができる。高度な圧縮技術によらなくても簡易な計算技術により、たとえばDICOM画像などの最大階調値が大きい画像を圧縮できる効果がある。変換後の画像を可逆的に戻すことも可能であり、可逆的変換が可能である。DICOM情報を、RGBに変換して、データ容量を小さくしつつ、画像の質が落ちるのを抑えることができる。
(effect)
According to this embodiment, although it is not a pure grayscale image, it can be made to look like a grayscale image by slightly shifting the RGB tone values. This has the effect that images with large maximum gradation values, such as DICOM images, can be compressed using simple calculation techniques without using sophisticated compression techniques. It is also possible to restore the converted image reversibly, and reversible conversion is possible. By converting DICOM information into RGB, it is possible to reduce the data capacity and prevent the image quality from deteriorating.

本実施の形態に係る画像処理方法は、DICOMの高深度の明度表現をRGBカラーのグレー近似色を用いて表現する手法に適用することができる。
(画像処理後の応用例)
複数のプラットホームで症例ファイルを閲覧可能とするため、症例画像、症例情報、補足情報等を1つのファイル(htmlやXMLなど)とすることで、ファイルの取り扱いを簡便化し、Webブラウザで閲覧可能とすることでマルチプラットフォームOSでの閲覧を可能としてもよい。
The image processing method according to the present embodiment can be applied to a method of expressing DICOM's deep brightness expression using gray approximations of RGB colors.
(Application example after image processing)
In order to allow case files to be viewed on multiple platforms, case images, case information, supplementary information, etc. are stored in one file (HTML, XML, etc.), which simplifies file handling and allows viewing on a web browser. By doing so, it may be possible to view on multi-platform OS.

症例ファイルの症例情報表示の表示・非表示を任意に切り替え可能とし読影の教育、診断の補助に用いることもできる。 The display of case information in case files can be switched between display and non-display at will, and can also be used for training in image interpretation and assisting in diagnosis.

症例画像、症例情報と補足情報を1つのファイルとして持ちながらそのファイルのアクションを行うことで症例情報、補足情報各々の表示非表示を可能とすることで症例画像から症例情報を回答としての学習または診断補助のツールとして用いることが可能となる。 By having a case image, case information, and supplementary information as one file, and performing actions on that file, it is possible to display or hide case information and supplementary information, so that it is possible to learn or use case information as an answer from a case image. It becomes possible to use it as a diagnostic aid tool.

(画像処理の具体例)
本実施の形態は、グレースケールDICOM画像の階調表現を色情報を用いて症例画像を作成する手法として適用できる。医療等で用いられるDICOMデータは階調表現幅が広い。その為、専用のデバイスを用いてDICOMデータを表示している。しかしながら、一般的なデジタルデバイスではDICOMデータをそのまま表示することができない。表示可能な階調を滅職しグレースケール画像に変換し表示することができる。本実施の形態ではグレースケールを表現可能な色階調に滅色する際に色情報を用いて明度の階調数を捕色することで階調表現の劣化を抑えた画像を生成することができる。
(Specific example of image processing)
This embodiment can be applied as a method of creating a case image using color information of the gradation expression of a grayscale DICOM image. DICOM data used in medical fields has a wide range of gradation expressions. Therefore, a dedicated device is used to display DICOM data. However, general digital devices cannot display DICOM data as is. It is possible to eliminate the displayable gradation and convert it into a grayscale image for display. In this embodiment, it is possible to generate an image with suppressed deterioration of gradation expression by capturing the number of gradations of brightness using color information when grayscale is faded to a color gradation that can be expressed. can.

画像症例システムおよび画像症例ファイルの生成に使うことができる。
ここで、症例画像とはDICOMをカラー情報を用いて生成した画像をいい、症例ファイルは症例画像、症例情報、補足情報を含むHTMLファイルをいうものとする。
It can be used to generate image case systems and image case files.
Here, the case image refers to an image generated using DICOM using color information, and the case file refers to an HTML file containing the case image, case information, and supplementary information.

一般的な表示デバイスではグレースケール画像を表現する場合、階調(明度)の表現は輝度信号(YUV/YCbCr)に変換して表現されるが、グレースケールであることから色差信号は発生しない。また、色の3原色(RGB)で出力する場合、R=G=Bで一般的に表現することができるが明度の変化量が±1変化する場合にR,G,B各々同量の変化量が必要となる。ここで、輝度信号では表現できない輝度分布を色空間(ここではRGB)に置き換え各色値に強度を振り分けることで疑似的に多階調の表現が可能とするものである。 When expressing a grayscale image with a general display device, the gradation (brightness) is expressed by converting it into a luminance signal (YUV/YCbCr), but since it is a grayscale, no color difference signal is generated. Also, when outputting in the three primary colors (RGB), it can be generally expressed as R=G=B, but if the amount of change in brightness changes by ±1, the same amount of change in each of R, G, and B quantity is required. Here, by replacing the luminance distribution that cannot be expressed with a luminance signal with a color space (RGB in this case) and allocating intensity to each color value, it is possible to express multiple gradations in a pseudo manner.

DICOM 11bit2048階調を8bitグレースケールにすると256階調であるがRGB24bitカラーで下記式を用いた場合、768階調で表現が可能となる。 When converting DICOM 11bit2048 gradations to 8bit grayscale, there are 256 gradations, but when using the following formula with RGB 24bit color, it is possible to express 768 gradations.

この変換に係る情報処理の考え方を以下に記載する。
Dmax : 階調最大値
Gmax : 8bit階調最大値
RGBmax : 24bitRGB各値最大値

D0 : DICOM階調値
G0 : 8bitクレースケール値 (0~255)
R,G,B : 24bitRGB各値 (0~255)

G0 = (D0 * Gmax) / Dmax
rgbCoef = (RGBmax * 3.0) / Dmax
rgb = (int)(D0 * rgbCoef)
R = G = B = rgb / 3
Mod = rgb % 3
mod = 2の時
B=B+1
R=R+1
mod = 1の時
B=B+1

int関数は、指定された数値を最も近い整数に切り捨てる関数である。
mod関数は、数値を除数で割ったときの剰余を求める関数である。
The concept of information processing related to this conversion is described below.
Dmax: maximum gradation value
Gmax: 8bit maximum gradation value
RGBmax: 24bitRGB maximum value

D0: DICOM gradation value
G0: 8bit clay scale value (0 to 255)
R,G,B: 24bitRGB each value (0 to 255)

G0 = (D0 * Gmax) / Dmax
rgbCoef = (RGBmax * 3.0) / Dmax
rgb = (int)(D0 * rgbCoef)
R = G = B = rgb / 3
mod = rgb% 3
When mod = 2
B=B+1
R=R+1
When mod = 1
B=B+1

The int function rounds down a specified number to the nearest integer.
The mod function is a function that calculates the remainder when a number is divided by a divisor.

「*」は掛け算の「×」を示す。

(画像処理の変換の具体例)
DICOM画像の階調および明度情報を取得する(S1)。次に、拡張後色値を算出する(S2)。拡張後色値を拡張数で除し、商と余りを算出する(S3)。余りに基づいて振り分けタイプを決定する(S4)。ステップ3(S3)で算出した商を基準階調値とし青の色値とし、赤の色値および緑の色値は基準階調値、基準階調値+α、基準階調値+βのいずれかから選択する(S5)。
"*" indicates "×" for multiplication.

(Specific example of image processing conversion)
Acquire gradation and brightness information of a DICOM image (S1). Next, an expanded color value is calculated (S2). The color value after expansion is divided by the expansion number, and the quotient and remainder are calculated (S3). The distribution type is determined based on the remainder (S4). The quotient calculated in step 3 (S3) is the standard gradation value and the blue color value, and the red color value and green color value are either the standard gradation value, the standard gradation value + α, or the standard gradation value + β. (S5).

本実施の形態に係る画像処理に適用することができる基本値および変数の一例を表1に示す。

Figure 2023126059000002
変換例の別の態様をそれぞれ表2~5に示す。表中、rgbは拡張後色階調を示し、EXPまたはExpは拡張数を示し、typeは余り値(振り分けタイプ)を意味している。Rは赤の色値、Gは緑の色値、Bは青の色値である。
Figure 2023126059000003
Figure 2023126059000004
Figure 2023126059000005
Figure 2023126059000006
Figure 2023126059000007

(変形例)
人の「明るさ」に対する視覚特性は青(B)に敏感であるため、本例ではBを起点色としている。よって、RGB256階調で表現可能なグレースケールは256*3*4色での表現が可能となる。
maxRGBRange=256*3*4= 3072
maxRGBRange(3072) > Dmax(2048) であるため、今回計算値を簡易とするために
Exp =3とすると
maxRGBRange'=256*3*3=2304階調を表現する
※ただし、RGBmaxが255であることから表現可能な範囲は、
maxRGBRange''=maxRGBRange'-Exp-2=2300となる。 Table 1 shows examples of basic values and variables that can be applied to the image processing according to this embodiment.
Figure 2023126059000002
Other aspects of conversion examples are shown in Tables 2 to 5, respectively. In the table, rgb indicates the color gradation after expansion, EXP or Exp indicates the number of expansions, and type means the remainder value (distribution type). R is the red color value, G is the green color value, and B is the blue color value.
Figure 2023126059000003
Figure 2023126059000004
Figure 2023126059000005
Figure 2023126059000006
Figure 2023126059000007

(Modified example)
Since human visual characteristics regarding "brightness" are sensitive to blue (B), B is used as the starting color in this example. Therefore, the gray scale that can be expressed with 256 RGB gradations can be expressed with 256*3*4 colors.
maxRGBRange=256*3*4= 3072
Since maxRGBRange(3072) > Dmax(2048), in order to simplify the calculated value this time,
If Exp =3
maxRGBRange'=256*3*3=2304 gradations are expressed *However, since RGBmax is 255, the expressible range is
maxRGBRange''=maxRGBRange'-Exp-2=2300.

起点色は動かさないため、Exp-2となる。その為、起点色を0から計算した場合、起点色最大部分で重複(Exp-2の「-2」分)が発生する。
分割を有効に生かす手法として(RGBの最大値を計算上超えないようにする)
起点の最大値を255-1として計算することで可能となる。
ExpRGB2= RGBMax * Exp-3の「-3」で計算が可能となる。
Since the starting color is not moved, it becomes Exp-2. Therefore, if the starting color is calculated from 0, there will be overlap (by "-2" of Exp-2) at the maximum starting color.
As a method to make effective use of division (avoid exceeding the maximum RGB value in calculations)
This is possible by calculating the maximum value of the starting point as 255-1.
ExpRGB2= RGBMax * Calculation is possible with "-3" of Exp-3.

本実施の形態は、本発明の範囲内において種々の変形が可能である。 This embodiment can be modified in various ways within the scope of the present invention.

10 画像処理装置
12 処理部
12a 拡張後色値算出部
12b 除算部
12c タイプ決定部
12d 色値振り分け部
12e グレースケール算出部
14 記憶部

10 Image processing device 12 Processing section 12a Post-expansion color value calculation section 12b Division section 12c Type determination section 12d Color value distribution section 12e Gray scale calculation section 14 Storage section

Claims (7)

医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理装置であって、
式1に基づき拡張後色値を算出する拡張後色値算出部と、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
前記拡張後色値算出部が算出した拡張後色値を拡張数で除し、商と余りを算出する除算部と、
前記余りに基づいて振り分けタイプを決定するタイプ決定部と、
前記タイプ決定部が決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、前前記除算部で算出された商を前記第1の色の基準色値として設定し、前記第1の色以外の他の色の色値は、前記基準色値、(前記基準色値+正の整数α(αは正の整数))および(前記基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与する色値振り分け部と、を含む画像処理装置。
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing device that converts into a second image,
an expanded color value calculation unit that calculates an expanded color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
a division unit that divides the expanded color value calculated by the expanded color value calculation unit by an expansion number and calculates a quotient and a remainder;
a type determining unit that determines a distribution type based on the remainder;
The gradation values of the first to third colors are assigned according to the distribution type determined by the type determining unit, and the quotient calculated by the dividing unit is used as the reference for the first color. The color value of the other color other than the first color is set as the reference color value, (the reference color value + positive integer α (α is a positive integer)) and (the reference color value - an image processing device including: a color value distribution unit that provides at least one color value selected from the group of positive integers β (β is a positive integer);
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理装置であって、
式1に基づき拡張後色値を算出する拡張後色値算出部と、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
前記拡張後色値算出部が算出した拡張後色値を拡張数で除し、商と余りを算出する除算部と、
前記余りに基づいて振り分けタイプを決定するタイプ決定部と、
前記タイプ決定部が決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、式2に基づき算出した基本階調値を第1の色の階調値とし、前記第1の色以外の他の色の階調値は、(前記基本階調値、前記基本階調値+正の整数α)および(前記基本階調値-正の整数β)の群から選択される少なくとも一種を付与する色値振り分け部と、を含む画像処理装置。
(式2)基本階調値=任意に設定した又は導出した第2の画像の階調-前記除算部で算出された商
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing device that converts into a second image,
an expanded color value calculation unit that calculates an expanded color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
a division unit that divides the expanded color value calculated by the expanded color value calculation unit by an expansion number and calculates a quotient and a remainder;
a type determining unit that determines a distribution type based on the remainder;
The gradation values of the first to third colors are assigned according to the distribution type determined by the type determining section, and the basic gradation value calculated based on formula 2 is assigned to the gradation of the first color. The gradation value of the other color other than the first color is (the basic gradation value, the basic gradation value + positive integer α) and (the basic gradation value - the positive integer β). ); and a color value distribution unit that assigns at least one color value selected from the group of:
(Formula 2) Basic gradation value = arbitrarily set or derived gradation of the second image - the quotient calculated by the division section
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理装置であって、
式1に基づき拡張後色値を算出する拡張後色値算出部と、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
前記拡張後色値算出部で算出された拡張後色値の整数から所定の数αを控除して得られた数を拡張数で除し、商と余りを算出する除算部と、
前記余りに基づいて振り分けタイプを決定するタイプ決定部と、
前記タイプ決定部が決定した振り分けタイプに応じて、第1の色~第3の色の階調値を付与するものであり、前記除算部で算出された商を前記第1の色の基準色値として設定し、前記第1の色以外の他の色の色値は、前記基準色値、(前記基準色値+正の整数α(αは正の整数))および(前記基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与する色値振り分け部と、を含む画像処理装置。
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing device that converts into a second image,
an expanded color value calculation unit that calculates an expanded color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
a division unit that calculates a quotient and a remainder by subtracting a predetermined number α from the integer of the expanded color value calculated by the expanded color value calculation unit and dividing the obtained number by the expanded number;
a type determining unit that determines a distribution type based on the remainder;
The gradation values of the first to third colors are assigned according to the distribution type determined by the type determining section, and the quotient calculated by the dividing section is used as the reference color of the first color. The color values of the other colors other than the first color are set as the reference color value, (the reference color value + a positive integer α (α is a positive integer)) and (the reference color value - An image processing device including: a color value distribution unit that assigns at least one color value selected from a group of positive integers β (β is a positive integer).
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理方法であって、
(A)拡張後色値算出部が、式1に基づき拡張後色値を算出する第1のステップと、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)前記除算部が、前記第1ステップにより得られた拡張後色値を拡張数で除し、商と余りを算出するステップと、
(C)タイプ決定部が、前記余りに基づいて振り分けタイプを決定する第3のステップと、
(D)前記色値振り分け部が、前記振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、前記ステップ(B)で算出された商を前記第1の色の基準色値として設定し、前記第1の色以外の他の色の色値は、前記基準色値、(前記基準色値+正の整数α(αは正の整数))および(前記基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与するステップと、を含む画像処理方法。
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing method for converting into a second image, the method comprising:
(A) a first step in which the extended color value calculation unit calculates the extended color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
(B) a step in which the division unit divides the expanded color value obtained in the first step by an expanded number, and calculates a quotient and a remainder;
(C) a third step in which the type determining unit determines a distribution type based on the remainder;
(D) a step in which the color value distribution unit assigns gradation values of the first to third colors according to the distribution type, and the quotient calculated in step (B) is assigned to the The color value of the other color other than the first color is set as the reference color value of the first color, the reference color value, (the reference color value + positive integer α (α is a positive integer)), and An image processing method comprising the step of providing at least one type selected from the group of (the reference color value - a positive integer β (β is a positive integer)).
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理方法であって、
(A)拡張後色値算出部が、式1に基づき拡張後色値を算出する第1のステップと、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)除算部が、前記第1ステップで算出された拡張後色値を拡張数で除し、商と余りを算出するステップと、
(C)タイプ決定部が、前記余りに基づいて振り分けタイプを決定する第3のステップと、
(D)色値振り分け部が、前記振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、式2に基づき算出した基本階調値を第1の色の階調値とし、前記第1の色以外の他の色の階調値は、(前記基本階調値、前記基本階調値+正の整数α)および(前記基本階調値-正の整数β)の群から選択される少なくとも一種を付与するステップと、を含む画像処理方法。
(式2)基本階調値=任意に設定した又は導出した第2の画像の階調-前記ステップ(B)で算出された商
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing method for converting into a second image, the method comprising:
(A) a first step in which the extended color value calculation unit calculates the extended color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
(B) a step in which the division unit divides the expanded color value calculated in the first step by the expanded number, and calculates a quotient and a remainder;
(C) a third step in which the type determining unit determines a distribution type based on the remainder;
(D) A step in which the color value distribution unit assigns gradation values of the first to third colors according to the distribution type, and the basic gradation value calculated based on Equation 2 is assigned to the first color. The gradation values of colors other than the first color are (the basic gradation value, the basic gradation value + positive integer α) and (the basic gradation value - positive integer α). an image processing method, the method comprising: applying at least one type selected from the group of integers β).
(Formula 2) Basic tone value = arbitrarily set or derived tone of the second image - quotient calculated in step (B) above
医療用又は検査用画像であってN階調(N≧2n,nは正の整数)の明度情報により表現される第1の画像を、第1~第3の色の3原色で表現される第2の画像に変換する画像処理方法であって、
(A)拡張後色値算出部が、式1に基づき拡張後色値を算出する第1のステップと、
(式1)拡張後色値=第1の画像のピクセルの明度値×(任意に設定した又は導出した第2の画像の階調×拡張数)/第1の画像のピクセルの明度階調
(1≦拡張数≦m,mは正の整数)
(B)除算部が、前記第1ステップで算出された拡張後色値の整数から所定の数αを控除して得られた数を拡張数で除し、商と余りを算出するステップと、
(C)タイプ決定部が、前記余りに基づいて振り分けタイプを決定する第3のステップと、
(D)色値振り分け部が、前記振り分けタイプに応じて、第1の色~第3の色の階調値を付与するステップであり、前記ステップ(B)で算出された商を前記第1の色の基準色値として設定し、前記第1の色以外の他の色の色値は、前記基準色値、(前記基準色値+正の整数α(αは正の整数))および(前記基準色値-正の整数β(βは正の整数))の群から選択される少なくとも一種を付与するステップと、を含む画像処理方法。
A first image, which is a medical or inspection image and is expressed by brightness information of N gradations (N≧2n, n is a positive integer), is expressed by three primary colors of the first to third colors. An image processing method for converting into a second image, the method comprising:
(A) a first step in which the extended color value calculation unit calculates the extended color value based on Equation 1;
(Formula 1) Color value after expansion = Brightness value of pixels in the first image x (arbitrarily set or derived tone of the second image x number of extensions) / Brightness tone of pixels in the first image ( 1≦Expansion number≦m, m is a positive integer)
(B) a step in which the division unit subtracts a predetermined number α from the integer of the expanded color value calculated in the first step, divides the obtained number by the expanded number, and calculates a quotient and a remainder;
(C) a third step in which the type determining unit determines a distribution type based on the remainder;
(D) A step in which the color value distribution unit assigns gradation values of the first to third colors according to the distribution type, and the quotient calculated in step (B) is assigned to the first to third colors. , and the color values of the other colors other than the first color are set as the reference color value, (the reference color value + positive integer α (α is a positive integer)) and ( An image processing method comprising the step of providing at least one type selected from the group of the reference color value - a positive integer β (β is a positive integer).
請求項1~6のいずれかに記載の画像処理方法をコンピュータに実行させるプログラム。



A program that causes a computer to execute the image processing method according to any one of claims 1 to 6.



JP2022030517A 2022-02-28 2022-02-28 Image processing apparatus, image processing method, and program Pending JP2023126059A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2022030517A JP2023126059A (en) 2022-02-28 2022-02-28 Image processing apparatus, image processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2022030517A JP2023126059A (en) 2022-02-28 2022-02-28 Image processing apparatus, image processing method, and program

Publications (1)

Publication Number Publication Date
JP2023126059A true JP2023126059A (en) 2023-09-07

Family

ID=87887715

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2022030517A Pending JP2023126059A (en) 2022-02-28 2022-02-28 Image processing apparatus, image processing method, and program

Country Status (1)

Country Link
JP (1) JP2023126059A (en)

Similar Documents

Publication Publication Date Title
JP5296889B2 (en) Image processing apparatus and image processing method
TWI247530B (en) Image processing device and image processing method and processing program
TW577228B (en) Image processing system, projector, information recording medium, and black/white decompression processing method
JP6548517B2 (en) Image processing apparatus and image processing method
US8643668B2 (en) Medical imaging viewer
JPH08241407A (en) Spatial filter processing system of digital color image
US6304300B1 (en) Floating point gamma correction method and system
JP4118881B2 (en) Multi-tone monochrome image display method, multi-tone monochrome image display device, computer, monochrome display device, reconversion adapter, and video card
JP2002325185A (en) Efficient method of computing gamma correction table
JP5676874B2 (en) Image processing apparatus, control method therefor, and program
US20060133687A1 (en) System and method for image display enhancement
KR102662600B1 (en) Image display device, image display system, image display method, and computer program
JP2023126059A (en) Image processing apparatus, image processing method, and program
US20230073734A1 (en) Image format conversion using luminance-adaptive dithering
JPH04190466A (en) Limited color representation device for color image
JP2018133043A (en) Image processing device and image processing method
JP2003271113A (en) Monochrome liquid crystal display device and monochrome liquid crystal display system
WO2001093239A1 (en) Number-of-gradation-levels decreasing method, image displaying method, and image display
JP2011124866A (en) Encoding apparatus and display control apparatus
JP2002232713A (en) Device and method for processing image
JP2007190208A (en) Comparative diagnostic reading support system
JP2012133195A (en) High visibility color presenting device, high visibility color presenting method and high visibility color presenting program
JP2023147057A (en) Image display system, image processing device, image display method, and program
JPH05227416A (en) Picture data processor
CN112289274A (en) Display method and device

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20230401

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20230405