JP2021169051A - Image clipping device and method - Google Patents

Image clipping device and method Download PDF

Info

Publication number
JP2021169051A
JP2021169051A JP2021129973A JP2021129973A JP2021169051A JP 2021169051 A JP2021169051 A JP 2021169051A JP 2021129973 A JP2021129973 A JP 2021129973A JP 2021129973 A JP2021129973 A JP 2021129973A JP 2021169051 A JP2021169051 A JP 2021169051A
Authority
JP
Japan
Prior art keywords
image
images
pixel
unit
cropping
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.)
Granted
Application number
JP2021129973A
Other languages
Japanese (ja)
Other versions
JP7248062B2 (en
Inventor
浩 竹下
Hiroshi Takeshita
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.)
JVCKenwood Corp
Original Assignee
JVCKenwood Corp
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 JVCKenwood Corp filed Critical JVCKenwood Corp
Priority to JP2021129973A priority Critical patent/JP7248062B2/en
Publication of JP2021169051A publication Critical patent/JP2021169051A/en
Application granted granted Critical
Publication of JP7248062B2 publication Critical patent/JP7248062B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Apparatus For Radiation Diagnosis (AREA)
  • Magnetic Resonance Imaging Apparatus (AREA)
  • Measuring And Recording Apparatus For Diagnosis (AREA)
  • Image Processing (AREA)

Abstract

To provide an image clipping device capable of clipping only a region of a necessary image of images displayed on a monitor.SOLUTION: Input images including a plurality of images having a region with a black background displayed in a display panel are binarized. A rhombic pixel group consisting of a plurality of pixels having an attention pixel in a center is read out from the binarized image, whether the pixel group matches four patterns for detecting corner parts in a rectangular region according to a way of arrangement of a black level is determined, and a position of the pixel at the corner part is detected. On the basis of the position, the rectangular region of each of the plurality of images is detected. Any one clipping method is selected out of a first clipping method for clipping an image with one image consisting of a rectangular region of an image having the largest size of the plurality of images as a unit, and a second clipping method for clipping an image with a compound image including two or more of the plurality of images as a unit, and an image is clipped from the input image.SELECTED DRAWING: Figure 1

Description

本発明は、モニタに表示された画像から特定の画像の領域を切り出す画像切り出し装置及び方法に関する。 The present invention relates to an image cropping device and a method for cropping a specific image region from an image displayed on a monitor.

医師は、コンピュータ断層撮影装置(CT)または磁気共鳴診断装置(MRI)等の撮影装置によって人体を撮影した撮影画像を見て、患者を診断することがある。医師が診断のために用いる撮影画像を医用画像と総称する。医用画像はPACS(Picture Archiving and Communication System)サーバに記憶されていて、ワークステーションがPACSサーバより医用画像を読み出してモニタに表示する。 A doctor may diagnose a patient by looking at a photographed image of a human body taken by an imaging device such as a computed tomography (CT) or magnetic resonance imaging (MRI). The captured images used by doctors for diagnosis are collectively referred to as medical images. The medical image is stored in the PACS (Picture Archiving and Communication System) server, and the workstation reads the medical image from the PACS server and displays it on the monitor.

特開2000−342539号公報Japanese Unexamined Patent Publication No. 2000-342539

医用画像を患者または他の医療機関に渡す必要があるときがある。通常、医用画像はDICOM(Digital Imaging and Communications in Medicine)規格に準拠しており、DICOMビューワと称されるソフトウェアによってモニタに表示される。従って、医用画像そのものを患者に渡しても患者は医用画像を見ることができない。 Sometimes it is necessary to give the medical image to the patient or other medical institution. Medical images are usually compliant with the DICOM (Digital Imaging and Communications in Medicine) standard and are displayed on a monitor by software called a DICOM viewer. Therefore, even if the medical image itself is given to the patient, the patient cannot see the medical image.

医用画像のファイルには、撮影画像の他に患者の個人情報または診療情報が含まれていることがあり、個人情報保護の観点から、医用画像のファイルそのものを第三者に渡すことができないことがある。個人情報または診療情報が含まれていないとしても、医療機関に設置されているワークステーションは、セキュリティ保護の観点から、医用画像のファイルを、インターネットを介して外部へと送信できないことがある。また、USB(Universal Serial Bus)端子を介して外部メモリ(いわゆるUSBメモリ)に医用画像のファイルを書き込めないことがある。 The medical image file may contain patient's personal information or medical information in addition to the photographed image, and from the viewpoint of personal information protection, the medical image file itself cannot be passed to a third party. There is. Even if personal information or medical information is not included, workstations installed in medical institutions may not be able to send medical image files to the outside via the Internet from the viewpoint of security protection. In addition, it may not be possible to write a medical image file to an external memory (so-called USB memory) via a USB (Universal Serial Bus) terminal.

そこで、モニタに表示されている画像をキャプチャした画像ファイルを患者または他の医療機関に渡すことが考えられる。しかしながら、モニタには、医用画像の他に、PACSサーバのディレクトリ構造またはDICOMビューワの機能を選択するための機能選択メニューが表示されている。よって、モニタに表示されている画像をそのままキャプチャした画像ファイルを患者または他の医療機関に渡すことは好ましくない。 Therefore, it is conceivable to pass an image file that captures the image displayed on the monitor to the patient or another medical institution. However, in addition to the medical image, the monitor displays a function selection menu for selecting the directory structure of the PACS server or the function of the DICOM viewer. Therefore, it is not preferable to pass the image file that captures the image displayed on the monitor as it is to the patient or other medical institutions.

本発明は、モニタに表示されている画像のうち必要な画像の領域のみを切り出すことができる画像切り出し装置及び方法を提供することを目的とする。 An object of the present invention is to provide an image cropping device and a method capable of cropping only a necessary image region of an image displayed on a monitor.

本発明は、表示パネルに表示される、黒を背景とする領域を有する複数の画像を含む入力画像を黒レベルと白レベルに二値化する二値化部と、前記二値化部によって二値化された二値化画像から、中心に注目画素を有する複数の画素からなるひし形の画素群を読み出して、読み出された前記ひし形の画素群が黒レベルの並び方に応じて矩形領域における角部をそれぞれ検出する4つのパターンと一致するか否かを判定し、角部の画素の位置を検出する角部検出部と、前記角部検出部によって検出された角部の画素の位置に基づいて、前記複数の画像それぞれの矩形領域を検出する領域検出部と、前記複数の画像のうちの最大の大きさを有する画像の矩形領域よりなる1つの画像を単位として切り出す第1の切り出し方法と、前記複数の画像のうちの2つ以上を含む複合画像を単位として切り出す第2の切り出し方法とを選択して、選択された切り出し方法で前記入力画像から画像を切り出す切り出し領域設定部と、を備える画像切り出し装置を提供する。 The present invention has a binarization unit that binarizes an input image including a plurality of images having a region with a black background displayed on a display panel into a black level and a white level, and the binarization unit. From the digitized binarized image, a diamond-shaped pixel group consisting of a plurality of pixels having a pixel of interest in the center is read out, and the read diamond-shaped pixel group is the corner in the rectangular region according to the arrangement of the black level. It is determined whether or not it matches the four patterns for detecting each part, and it is based on the corner part detection part that detects the position of the image of the corner part and the position of the pixel of the corner part detected by the corner part detection part. A region detection unit that detects a rectangular region of each of the plurality of images, and a first cropping method that crops one image consisting of a rectangular region of an image having the maximum size among the plurality of images as a unit. , A second cropping method for cropping a composite image including two or more of the plurality of images as a unit, and a cropping area setting unit for cropping an image from the input image by the selected cropping method. Provided is an image cropping device to be provided.

本発明は、表示パネルに表示される、黒を背景とする領域を有する複数の画像を含む入力画像を黒レベルと白レベルに二値化し、二値化された二値化画像から、中心に注目画素を有する複数の画素からなるひし形の画素群を読み出して、読み出された前記ひし形の画素群が黒レベルの並び方に応じて矩形領域における角部をそれぞれ検出する4つのパターンと一致するか否かを判定し、角部の画素の位置を検出し、検出された角部の画素の位置に基づいて、前記複数の画像それぞれの矩形領域を検出し、入力された操作に応じて、前記複数の画像のうちの最大の大きさを有する画像の矩形領域よりなる1つの画像を単位として切り出す第1の切り出し方法と、前記複数の画像のうちの2つ以上を含む複合画像を単位として切り出す第2の切り出し方法とのいずれか一方を選択し、選択された切り出し方法で前記入力画像から画像を切り出す像切り出し方法を提供する。 The present invention binarizes an input image including a plurality of images having a region with a black background displayed on a display panel into a black level and a white level, and from the binarized binarized image to the center. Whether a diamond-shaped pixel group consisting of a plurality of pixels having a pixel of interest is read out, and the read-out diamond-shaped pixel group matches four patterns for detecting corners in a rectangular region according to the arrangement of black levels. Whether or not it is determined, the position of the pixel at the corner is detected, the rectangular area of each of the plurality of images is detected based on the detected position of the pixel at the corner, and the above is performed according to the input operation. A first cropping method in which one image consisting of a rectangular area of an image having the maximum size among a plurality of images is cut out as a unit, and a composite image including two or more of the plurality of images is cut out as a unit. selects one of the second cut-out method provides images cut method for cutting out an image from the input image at a selected cut method.

本発明の画像切り出し装置及び方法によれば、モニタに表示されている画像のうち必要な医用画像の領域のみを切り出すことができる。 According to the image cropping device and method of the present invention, only the necessary medical image region can be cropped from the image displayed on the monitor.

一実施形態の画像切り出し装置を備えるモニタの構成を示すブロック図である。It is a block diagram which shows the structure of the monitor which includes the image cropping apparatus of one Embodiment. モニタの表示パネルに表示される医用画像を含む画像の一例を示す図である。It is a figure which shows an example of the image including the medical image displayed on the display panel of a monitor. 一実施形態の画像切り出し装置における角部検出部が読み出す二値化画像の単位を示す図である。It is a figure which shows the unit of the binarized image which the corner part detection part reads out in the image cutout apparatus of one Embodiment. 矩形領域の左上角部の画素位置を検出するパターンを示す図である。It is a figure which shows the pattern which detects the pixel position of the upper left corner part of a rectangular area. 矩形領域の右上角部の画素位置を検出するパターンを示す図である。It is a figure which shows the pattern which detects the pixel position of the upper right corner part of a rectangular area. 矩形領域の左下角部の画素位置を検出するパターンを示す図である。It is a figure which shows the pattern which detects the pixel position of the lower left corner part of a rectangular area. 矩形領域の右下角部の画素位置を検出するパターンを示す図である。It is a figure which shows the pattern which detects the pixel position of the lower right corner part of a rectangular area. 角部検出部が表示パネルに表示される画像の外側の画素位置の画素を補間する動作の一例を示す図である。It is a figure which shows an example of the operation which the corner part detection part interpolates the pixel of the pixel position outside the image displayed on the display panel. 角部検出部が図2に示す画像に含まれる医用画像の角部の画素を検出した状態を概念的に示す図である。It is a figure which conceptually shows the state which the corner part detection part detected the pixel of the corner part of the medical image included in the image shown in FIG. 角部検出部が一部の角部を検出できなかった例であり、一実施形態の画像切り出し装置における領域検出部が医用画像の矩形領域を検出したとみなしてもよい場合を示す図である。It is an example which the corner part detection part could not detect a part corner part, and it is a figure which shows the case which it may be considered that the area detection part in the image cutting apparatus of one Embodiment detected a rectangular area of a medical image. .. モニタの表示パネルに表示される医用画像を含む画像の他の例を示す図である。It is a figure which shows other example of the image including the medical image displayed on the display panel of a monitor. 領域検出部が検出する矩形領域の例であり、一実施形態の画像切り出し装置における切り出し領域設定部が切り出す医用画像の例を示す図である。It is an example of the rectangular area detected by the area detection part, and is the figure which shows the example of the medical image cut out by the cutout area setting part in the image cutting device of one Embodiment. 切り出し領域設定部が切り出す医用画像の他の例を示す図である。It is a figure which shows another example of the medical image which the cutout area setting part cuts out. 切り出し方法を選択するためのメニューの一例を示す図である。It is a figure which shows an example of the menu for selecting a cutting method. 表示パネルに表示される画像が大きさの異なる複数の医用画像を含む例を示す図である。It is a figure which shows the example which includes a plurality of medical images of different sizes in the image displayed on a display panel. 表示パネルに表示される画像が大きさの異なる複数の医用画像を含む場合に用いられる、切り出し方法を選択するためのメニューの一例を示す図である。It is a figure which shows an example of the menu for selecting a cutout method used when the image displayed on a display panel contains a plurality of medical images of different sizes. 表示パネルに表示される画像が大きさの異なる複数の医用画像を含む場合に、切り出し領域設定部が切り出す医用画像の一例を示す図である。It is a figure which shows an example of the medical image which the cutout area setting part cuts out when the image displayed on a display panel contains a plurality of medical images of different sizes. 表示パネルが、モノクロ画像とカラー画像とが混在した画像を表示する場合に好適なモニタの構成を示す部分ブロック図である。FIG. 5 is a partial block diagram showing a monitor configuration suitable for displaying an image in which a monochrome image and a color image are mixed in the display panel. DICOM GSDF及びガンマ2.2のガンマテーブルの入出力特性を示す特性図である。It is a characteristic figure which shows the input / output characteristic of the gamma table of DICOM GSDF and gamma 2.2.

以下、一実施形態の画像切り出し装置及び方法について、添付図面を参照して説明する。図1において、サーバ1には医用画像が記憶されており、ワークステーション2はサーバ1より医用画像を読み出してモニタ3に表示する。サーバ1はPACSサーバであってもよく、医用画像はDICOM規格に準拠した画像であってもよい。医用画像がDICOM規格に準拠した画像であるとき、ワークステーション2はDICOMビューワによって医用画像をモニタ3に表示する。 Hereinafter, the image cropping apparatus and method of one embodiment will be described with reference to the accompanying drawings. In FIG. 1, a medical image is stored in the server 1, and the workstation 2 reads the medical image from the server 1 and displays it on the monitor 3. The server 1 may be a PACS server, and the medical image may be an image compliant with the DICOM standard. When the medical image is an image conforming to the DICOM standard, the workstation 2 displays the medical image on the monitor 3 by the DICOM viewer.

前述のように、モニタ3に表示される画像(入力画像)は、医用画像の他に、サーバ1のディレクトリ構造または機能選択メニューを含むことがある。 As described above, the image (input image) displayed on the monitor 3 may include the directory structure of the server 1 or the function selection menu in addition to the medical image.

モニタ3は、オンスクリーンディスプレイ(OSD)重畳部301、パネル駆動部302、表示パネル303、操作部309を備える。これらは、モニタ3が通常備える構成である。 The monitor 3 includes an on-screen display (OSD) superimposing unit 301, a panel driving unit 302, a display panel 303, and an operation unit 309. These are the configurations that the monitor 3 usually has.

また、モニタ3は、画像メモリ304、二値化部305、角部検出部306、領域検出部307、切り出し領域設定部308、画像メモリ310、画像書き込み制御部311、記憶媒体接続ポート312を備える。これらは、モニタ3に表示されている画像のうち必要な医用画像の領域を切り出して外部メモリである記憶媒体4に書き込むために本実施形態において設けた構成である。 Further, the monitor 3 includes an image memory 304, a binarization unit 305, a corner detection unit 306, an area detection unit 307, a cutout area setting unit 308, an image memory 310, an image writing control unit 311 and a storage medium connection port 312. .. These are the configurations provided in the present embodiment for cutting out a necessary medical image area from the image displayed on the monitor 3 and writing it to the storage medium 4 which is an external memory.

OSD重畳部301は、操作部309によって所定の操作がなされたときに、モニタ3に表示されている画像に文字、記号等のOSD情報(付加情報)を重畳する。パネル駆動部302は、表示パネル303を駆動して表示パネル303に医用画像を含む画像を表示する。 The OSD superimposing unit 301 superimposes OSD information (additional information) such as characters and symbols on the image displayed on the monitor 3 when a predetermined operation is performed by the operation unit 309. The panel drive unit 302 drives the display panel 303 to display an image including a medical image on the display panel 303.

画像メモリ304は、表示パネル303に表示されている医用画像を含む画像を記憶する。二値化部305は、画像メモリ304より読み出された画像の各画素値を二値化する。具体的には、二値化部305は、所定の閾値以下の画素値を0、閾値を超える画素値を1とする。閾値は0であってもよいし、黒レベルのオフセットまたはノイズを考慮して、0よりもわずかに大きい値としてもよい。閾値を調整可能としてもよい。 The image memory 304 stores an image including a medical image displayed on the display panel 303. The binarization unit 305 binarizes each pixel value of the image read from the image memory 304. Specifically, the binarization unit 305 sets the pixel value below the predetermined threshold value to 0 and the pixel value exceeding the threshold value to 1. The threshold value may be 0 or may be slightly greater than 0 in consideration of black level offset or noise. The threshold may be adjustable.

図2は、モニタ3への入力画像であって、表示パネル303に表示され、画像メモリ304に記憶されている医用画像51を含む画像50の一例を示している。図2に示す画像50は、身体の一部を撮影した医用画像51の他に、ディレクトリ構造が表示されているディレクトリ構造表示領域52と、機能選択メニューが表示されている機能選択メニュー表示領域53等の医用画像51以外の画像を含む。 FIG. 2 shows an example of an image 50 which is an input image to the monitor 3 and includes a medical image 51 displayed on the display panel 303 and stored in the image memory 304. In the image 50 shown in FIG. 2, in addition to the medical image 51 obtained by photographing a part of the body, the directory structure display area 52 in which the directory structure is displayed and the function selection menu display area 53 in which the function selection menu is displayed are shown. Etc., including images other than the medical image 51.

医用画像51は、黒の背景に、身体が白またはグレーで表現されている。従って、二値化部305によって図2に示す画像50を二値化すると、背景の部分の画素値が0となり、身体の部分は画素値が1となる。ディレクトリ構造表示領域52と、機能選択メニュー表示領域53等の医用画像51以外の部分は、黒で表示された文字を除き、大方、画素値が1となる。 In the medical image 51, the body is represented in white or gray on a black background. Therefore, when the image 50 shown in FIG. 2 is binarized by the binarization unit 305, the pixel value of the background portion becomes 0 and the pixel value of the body portion becomes 1. The part other than the medical image 51 such as the directory structure display area 52 and the function selection menu display area 53 has a pixel value of 1 except for the characters displayed in black.

角部検出部306は、二値化部305から供給された二値化画像に基づいて、黒を背景とする領域を医用画像51と推定して、医用画像51の矩形領域の4つの角部の画素位置を検出する。角部検出部306は、画像50を二値化した二値化画像のうち、一例として図3に示すパターンの41画素を単位として読み出す。図3において、黒丸は注目画素、白丸は注目画素の周辺に位置する周辺画素である。 Based on the binarized image supplied from the binarized unit 305, the corner detection unit 306 estimates the region with the black background as the medical image 51, and the four corners of the rectangular region of the medical image 51. Detects the pixel position of. The corner detection unit 306 reads out 41 pixels of the pattern shown in FIG. 3 as a unit in the binarized image obtained by binarizing the image 50 as an example. In FIG. 3, black circles are pixels of interest, and white circles are peripheral pixels located around the pixels of interest.

角部検出部306は、読み出した41画素が特定のパターンと一致するか否かを判定することによって、黒を背景とする矩形領域の角部を検出する。 The corner detection unit 306 detects the corners of a rectangular region with a black background by determining whether or not the read 41 pixels match a specific pattern.

図4Aは、矩形領域の左上角部の画素位置を検出するパターンTLである。図4Bは、矩形領域の右上角部の画素位置を検出するパターンTRである。図4Cは、矩形領域の左下角部の画素位置を検出するパターンBLである。図4Dは、矩形領域の右下角部の画素位置を検出するパターンBRである。図4A〜図4Dにおいて、*はパターンマッチングをしない画素であることを示す。即ち、*で示す位置の画素は0であっても1であってもよい。 FIG. 4A is a pattern TL for detecting the pixel position in the upper left corner of the rectangular region. FIG. 4B is a pattern TR for detecting the pixel position in the upper right corner of the rectangular region. FIG. 4C is a pattern BL for detecting the pixel position in the lower left corner of the rectangular region. FIG. 4D is a pattern BR for detecting the pixel position in the lower right corner of the rectangular region. In FIGS. 4A to 4D, * indicates a pixel that does not perform pattern matching. That is, the pixel at the position indicated by * may be 0 or 1.

角部検出部306が図4A〜図4Dに示すパターンTL、TR、BL、BRを用いてパターンマッチングするときに、画像50の角部近傍の画素を注目画素とするときには、図3に示す41画素の一部が存在しないことがある。このような場合、角部検出部306は、図5に示すように、画像50の外側の画素位置の画素を補間する。一例として、角部検出部306は、画像50の外側の画素位置の画素を、画像50の上下または左右の端部の画素で補間する。 When the corner detection unit 306 performs pattern matching using the patterns TL, TR, BL, and BR shown in FIGS. 4A to 4D and the pixel near the corner of the image 50 is the pixel of interest, 41 shown in FIG. Some of the pixels may not be present. In such a case, the corner detection unit 306 interpolates the pixels at the pixel positions outside the image 50, as shown in FIG. As an example, the corner detection unit 306 interpolates the pixels at the pixel positions outside the image 50 with the pixels at the upper, lower, left, and right ends of the image 50.

図5に示す画像50の左上角部を例とすると、外側の画素位置の画素が、最上位ラインまたは左端に位置する画素P11〜P13及びP21、P31、P41、P51で補間されている。外側の画素位置の画素の補間方法は種々あり、図5に示す補間方法に限定されない。 Taking the upper left corner of the image 50 shown in FIG. 5 as an example, the pixels at the outer pixel positions are interpolated by the pixels P11 to P13 and P21, P31, P41, and P51 located at the uppermost line or the left end. There are various methods for interpolating the pixels at the outer pixel positions, and the method is not limited to the interpolation method shown in FIG.

角部検出部306は、画像50の左から右、上から下へと注目画素を1画素ずつずらしながら、パターンTL、TR、BL、BRのいずれかに所定の割合以上で一致する画素を探索する。角部検出部306は、所定の割合以上で一致する画素があったとき、その画素の位置情報を内蔵するレジスタに格納する。所定の割合を調整可能としてもよい。 The corner detection unit 306 searches for pixels that match any of the patterns TL, TR, BL, and BR at a predetermined ratio or more while shifting the pixel of interest from left to right and from top to bottom of the image 50 by one pixel. do. When there are pixels that match at a predetermined ratio or more, the corner detection unit 306 stores the position information of the pixels in a register built in. A predetermined ratio may be adjustable.

以上の処理によって、図6に示すように、角部検出部306は、医用画像51における左上角部の画素Pc1の位置と、右上角部の画素Pc2の位置と、左下角部の画素Pc3の位置と、右下角部の画素Pc4の位置とを検出する。 By the above processing, as shown in FIG. 6, the corner detection unit 306 has the position of the pixel Pc1 in the upper left corner, the position of the pixel Pc2 in the upper right corner, and the pixel Pc3 in the lower left corner in the medical image 51. The position and the position of the pixel Pc4 in the lower right corner are detected.

領域検出部307は、角部検出部306によって検出された4つの角部の画素位置に基づいて、医用画像51のような黒を背景とする矩形領域を検出する。領域検出部307は、次の条件を満たすとき矩形領域を検出したと決定する。 The area detection unit 307 detects a rectangular area with a black background such as the medical image 51 based on the pixel positions of the four corners detected by the corner detection unit 306. The area detection unit 307 determines that the rectangular area has been detected when the following conditions are satisfied.

第1に、パターンTLを用いて検出した水平画素位置と、パターンBLを用いて検出した水平画素位置とが所定の誤差の範囲内で一致する。第2に、パターンTRを用いて検出した水平画素位置と、パターンBRを用いて検出した水平画素位置とが所定の誤差の範囲内で一致する。第3に、パターンTLを用いて検出した垂直画素位置と、パターンTRを用いて検出した垂直画素位置とが所定の誤差の範囲内で一致する。第4に、パターンBLを用いて検出した垂直画素位置と、パターンBRを用いて検出した垂直画素位置とが所定の誤差の範囲内で一致する。 First, the horizontal pixel position detected by using the pattern TL and the horizontal pixel position detected by using the pattern BL match within a predetermined error range. Secondly, the horizontal pixel position detected by using the pattern TR and the horizontal pixel position detected by using the pattern BR match within a predetermined error range. Thirdly, the vertical pixel position detected by using the pattern TL and the vertical pixel position detected by using the pattern TR match within a predetermined error range. Fourth, the vertical pixel position detected by using the pattern BL and the vertical pixel position detected by using the pattern BR match within a predetermined error range.

角部検出部306のレジスタに格納したパターンTL、TR、BL、BRを用いて検出した水平画素位置(x)と垂直画素位置(y)とが、それぞれ、(x,y)=(100,100)、(300,100)、(100,200)、(300,200)であるとする。このとき、領域検出部307は、(x,y)=(100,100)を左上角部、(x,y)=(300,200)を右下角部とする領域を矩形領域と検出する。 The horizontal pixel position (x) and the vertical pixel position (y) detected by using the patterns TL, TR, BL, and BR stored in the register of the corner detection unit 306 are (x, y) = (100, respectively. It is assumed that they are 100), (300, 100), (100, 200), and (300, 200). At this time, the area detection unit 307 detects a region in which (x, y) = (100,100) is the upper left corner portion and (x, y) = (300, 200) is the lower right corner portion as a rectangular region.

角部検出部306において、図7の(a)に示すように4つの角部のうちの1つ角部が検出できない場合、図7の(b)に示すように対角方向の2つの角部が検出できない場合が発生することがある。図7の(a)及び(b)において、ハッチングを付した丸は検出された角部の画素、二点鎖線にて示す丸は検出できなかった角部の画素を示す。 When one of the four corners cannot be detected by the corner detection unit 306 as shown in FIG. 7 (a), the two diagonal corners are shown in FIG. 7 (b). In some cases, the part cannot be detected. In FIGS. 7A and 7B, the hatched circles indicate the detected corner pixels, and the circles indicated by the alternate long and short dash lines indicate the undetectable corner pixels.

領域検出部307は、図7の(a)または(b)の場合に、矩形領域を検出したとみなしてもよい。このとき、領域検出部307は、検出できなかった角部の画素の位置情報を検出された角部の画素の位置情報で代用すればよい。 The area detection unit 307 may consider that the rectangular area has been detected in the case of (a) or (b) of FIG. At this time, the area detection unit 307 may substitute the position information of the pixels at the corners that could not be detected with the position information of the pixels at the corners that were detected.

仮に、画像50のうち医用画像51以外の領域において、医用画像でないにもかかわらず黒または黒に近いグレーで表現されている非医用画像の矩形領域が存在したとする。このとき、角部検出部306が非医用画像の矩形領域の角部を検出し、領域検出部307が非医用画像の矩形領域を医用画像の矩形領域と誤検出するおそれがある。 It is assumed that, in the region of the image 50 other than the medical image 51, there is a rectangular region of a non-medical image represented in black or a gray close to black even though it is not a medical image. At this time, the corner detection unit 306 may detect the corner of the rectangular region of the non-medical image, and the region detection unit 307 may erroneously detect the rectangular region of the non-medical image as the rectangular region of the medical image.

通常、医用画像の矩形領域は所定の範囲のアスペクト比を有し、過度に横長または縦長の矩形領域は医用画像の矩形領域ではない可能性が高い。そこで、領域検出部307は、所定の範囲から外れたアスペクト比を有する矩形領域を医用画像の矩形領域ではないとみなして除外することが好ましい。 Generally, a rectangular area of a medical image has an aspect ratio in a predetermined range, and an excessively horizontally long or vertically long rectangular area is likely not a rectangular area of a medical image. Therefore, it is preferable that the region detection unit 307 excludes a rectangular region having an aspect ratio outside the predetermined range by regarding it as not being a rectangular region of the medical image.

以上のようにして、モニタ3に図2に示す画像50が入力されたとき、領域検出部307は、画像50内の医用画像51を、画像を切り出すべき矩形領域であると検出する。操作部309によって医用画像51を切り出す指示がなされたとき、切り出し領域設定部308は、画像メモリ304に記憶された画像50のうち、医用画像51の領域を切り出し、切り出された画像を画像メモリ310に供給する。画像メモリ310は切り出された画像を記憶する。 As described above, when the image 50 shown in FIG. 2 is input to the monitor 3, the area detection unit 307 detects the medical image 51 in the image 50 as a rectangular area from which the image should be cut out. When the operation unit 309 gives an instruction to cut out the medical image 51, the cutout area setting unit 308 cuts out the area of the medical image 51 out of the images 50 stored in the image memory 304, and cuts out the cut out image into the image memory 310. Supply to. The image memory 310 stores the clipped image.

操作部309によって、切り出された画像を記憶媒体4に書き込む指示がなされたとき、画像書き込み制御部311は、画像メモリ310から、切り出された画像を読み出して、記憶媒体接続ポート312を介して記憶媒体4に書き込む。これによって、記憶媒体4には、図2に示す医用画像51の領域のみを切り出した画像が記憶される。 When the operation unit 309 gives an instruction to write the cut-out image to the storage medium 4, the image writing control unit 311 reads the cut-out image from the image memory 310 and stores the cut-out image via the storage medium connection port 312. Write to medium 4. As a result, the storage medium 4 stores an image obtained by cutting out only the region of the medical image 51 shown in FIG.

記憶媒体4は例えばUSBメモリであり、この場合、記憶媒体接続ポート312はUSB接続ポートである。記憶媒体4はメモリカードであってもよく、この場合、記憶媒体接続ポート312はメモリカードの接続ポートである。 The storage medium 4 is, for example, a USB memory, and in this case, the storage medium connection port 312 is a USB connection port. The storage medium 4 may be a memory card, in which case the storage medium connection port 312 is a memory card connection port.

図8は、モニタ3への入力画像の他の例を示している。図8に示す画像50は、4つの医用画像501〜504と、機能選択メニュー表示領域53とを含む。モニタ3に図2に示す画像50が入力された場合と同様に、表示パネル303は図8に示す画像50を表示し、画像メモリ304は図8に示す画像50を記憶する。 FIG. 8 shows another example of the input image to the monitor 3. The image 50 shown in FIG. 8 includes four medical images 501 to 504 and a function selection menu display area 53. Similar to the case where the image 50 shown in FIG. 2 is input to the monitor 3, the display panel 303 displays the image 50 shown in FIG. 8, and the image memory 304 stores the image 50 shown in FIG.

二値化部305は図8に示す画像50を二値化し、角部検出部306はパターンTL、TR、BL、BRを用いて画像50に含まれる黒を背景とする矩形領域の角部の画素位置を検出する。 The binarization unit 305 binarizes the image 50 shown in FIG. 8, and the corner detection unit 306 uses patterns TL, TR, BL, and BR to identify the corners of the rectangular region with a black background included in the image 50. Detect the pixel position.

図8に示す画像50は4つの医用画像501〜504を含む。よって、角部検出部306は、医用画像501における4つの角部の画素Pc11〜Pc14の位置を検出し、医用画像502における4つの角部の画素Pc21〜Pc24の位置を検出する。角部検出部306は、医用画像503における4つの角部の画素Pc31〜Pc34の位置を検出し、医用画像504における4つの角部の画素Pc41〜Pc44の位置を検出する。 Image 50 shown in FIG. 8 includes four medical images 501-504. Therefore, the corner detection unit 306 detects the positions of the four corner pixels Pc11 to Pc14 in the medical image 501, and detects the positions of the four corner pixels Pc21 to Pc24 in the medical image 502. The corner detection unit 306 detects the positions of the four corner pixels Pc31 to Pc34 in the medical image 503, and detects the positions of the four corner pixels Pc41 to Pc44 in the medical image 504.

このように、角部検出部306において複数の矩形領域の角部の画素位置が検出されたとき、領域検出部307は、それぞれの矩形領域において、上述した条件を満たすか否かを判定して矩形領域を検出する。さらに、領域検出部307は、複数の矩形領域のうちの2またはそれ以上を組み合わせた複合領域(複合画像)を矩形領域と検出する。 In this way, when the corner portion detection unit 306 detects the pixel positions of the corner portions of the plurality of rectangular regions, the region detection unit 307 determines whether or not the above-mentioned conditions are satisfied in each rectangular region. Detects a rectangular area. Further, the area detection unit 307 detects a composite area (composite image) in which two or more of the plurality of rectangular areas are combined as a rectangular area.

図8に示すように4つの医用画像501〜504が存在するとき、領域検出部307は図9の(a)〜(f)に示すように矩形領域を検出する。 When four medical images 501 to 504 are present as shown in FIG. 8, the region detection unit 307 detects a rectangular region as shown in FIGS. 9A to 9F.

具体的には、図9の(a)に示すように、領域検出部307は、医用画像501〜504を個別に矩形領域と検出する。 Specifically, as shown in FIG. 9A, the area detection unit 307 individually detects the medical images 501 to 504 as a rectangular area.

図9の(b)に示すように、領域検出部307は、画素Pc11、Pc12、Pc33、Pc34で囲まれた医用画像501及び503を含む複合画像5013を矩形領域と検出する。図9の(c)に示すように、領域検出部307は、画素Pc21、Pc22、Pc43、Pc44で囲まれた医用画像502及び504を含む複合画像5024を矩形領域と検出する。 As shown in FIG. 9B, the region detection unit 307 detects the composite image 5013 including the medical images 501 and 503 surrounded by the pixels Pc11, Pc12, Pc33, and Pc34 as a rectangular region. As shown in FIG. 9C, the area detection unit 307 detects the composite image 5024 including the medical images 502 and 504 surrounded by the pixels Pc21, Pc22, Pc43, and Pc44 as a rectangular area.

図9の(d)に示すように、領域検出部307は、画素Pc11、Pc22、Pc13、Pc24で囲まれた医用画像501及び502を含む複合画像5012を矩形領域と検出する。図9の(e)に示すように、領域検出部307は、画素Pc31、Pc42、Pc33、Pc44で囲まれた医用画像503及び504を含む複合画像5034を矩形領域と検出する。 As shown in FIG. 9D, the region detection unit 307 detects the composite image 5012 including the medical images 501 and 502 surrounded by the pixels Pc11, Pc22, Pc13, and Pc24 as a rectangular region. As shown in FIG. 9 (e), the region detection unit 307 detects the composite image 5034 including the medical images 503 and 504 surrounded by the pixels Pc31, Pc42, Pc33, and Pc44 as a rectangular region.

さらに、図9の(f)に示すように、領域検出部307は、画素Pc11、Pc22、Pc33、Pc44で囲まれた医用画像501〜504の全体を含む複合画像500を矩形領域と検出する。 Further, as shown in FIG. 9 (f), the region detection unit 307 detects the composite image 500 including the entire medical images 501 to 504 surrounded by the pixels Pc11, Pc22, Pc33, and Pc44 as a rectangular region.

モニタ3の操作者は、操作部309を操作することによって、図9の(a)〜(f)のうちから、切り出し領域設定部308が画像50より切り出す矩形領域を選択する。図9に矢印で示すように、切り出し領域設定部308は、操作者が操作部309における1つの操作ボタンを押すたびに、図9の(a)〜(f)の矩形領域を順に切り替える。 By operating the operation unit 309, the operator of the monitor 3 selects a rectangular area to be cut out from the image 50 by the cutout area setting unit 308 from the (a) to (f) of FIG. As shown by an arrow in FIG. 9, the cutout area setting unit 308 switches the rectangular areas (a) to (f) of FIG. 9 in order each time the operator presses one operation button on the operation unit 309.

このようにすれば、操作者が、操作部309が通常備える操作ボタンを押すだけで、図9の(a)〜(f)のうちのいずれかの矩形領域を簡単に選択することができる。モニタ3を、画像50より医用画像の領域を切り出して記憶媒体4に書き込むモードに設定したときに、操作ボタンに矩形領域を切り替える機能を割り当てればよい。 In this way, the operator can easily select any of the rectangular regions (a) to (f) of FIG. 9 simply by pressing the operation button normally provided on the operation unit 309. When the monitor 3 is set to the mode in which the area of the medical image is cut out from the image 50 and written to the storage medium 4, the operation button may be assigned a function of switching the rectangular area.

切り出し領域設定部308は、図9の(a)が選択されたとき、画像メモリ304に記憶された画像50のうち、医用画像501〜504の各領域を個別に切り出した画像を画像メモリ310に供給する。画像メモリ310は4つの画像を記憶する。 When (a) of FIG. 9 is selected, the cutout area setting unit 308 additionally cuts out each area of the medical images 501 to 504 among the images 50 stored in the image memory 304 into the image memory 310. Supply. The image memory 310 stores four images.

操作部309によって、切り出した画像を記憶媒体4に書き込む指示がなされたとき、画像書き込み制御部311は、画像メモリ310から、切り出した4つの画像を読み出して、記憶媒体接続ポート312を介して記憶媒体4に書き込む。これによって、記憶媒体4には、図8に示す医用画像501〜504の各領域を個別に切り出した画像が記憶される。 When the operation unit 309 gives an instruction to write the cut-out image to the storage medium 4, the image writing control unit 311 reads out the four cut-out images from the image memory 310 and stores them via the storage medium connection port 312. Write to medium 4. As a result, the storage medium 4 stores images obtained by individually cutting out each region of the medical images 501 to 504 shown in FIG.

図9の(b)が選択されたときには、記憶媒体4には、医用画像501及び503を含む1つの複合画像5013が記憶され、図9の(c)が選択されたときには、記憶媒体4には、医用画像502及び504を含む1つの複合画像5024が記憶される。 When (b) of FIG. 9 is selected, one composite image 5013 including medical images 501 and 503 is stored in the storage medium 4, and when (c) of FIG. 9 is selected, the storage medium 4 stores one composite image 5013. Stores one composite image 5024 that includes medical images 502 and 504.

図9の(d)が選択されたときには、記憶媒体4には、医用画像501及び502を含む1つの複合画像5012が記憶され、図9の(e)が選択されたときには、記憶媒体4には、医用画像503及び504を含む1つの複合画像5034が記憶される。 When (d) of FIG. 9 is selected, one composite image 5012 including medical images 501 and 502 is stored in the storage medium 4, and when (e) of FIG. 9 is selected, the storage medium 4 stores one composite image 5012. Stores one composite image 5034 that includes medical images 503 and 504.

図9の(f)が選択されたときには、記憶媒体4には、医用画像501〜504の全体を含む1つの複合画像500が記憶される。 When (f) of FIG. 9 is selected, the storage medium 4 stores one composite image 500 including the entire medical images 501 to 504.

さらに、図10に示すように、切り出し領域設定部308は、操作部309の操作に応じて、医用画像501〜504のうちの1つの医用画像のみを選択的に切り出した画像を画像メモリ310に供給するようにしてもよい。このようにすれば、記憶媒体4に医用画像501〜504のうちの選択した1つの医用画像のみを記憶させることができる。 Further, as shown in FIG. 10, the cutout area setting unit 308 selectively cuts out only one of the medical images 501 to 504 in the image memory 310 in response to the operation of the operation unit 309. It may be supplied. In this way, the storage medium 4 can store only one selected medical image from the medical images 501 to 504.

図9または図10のように切り出す医用画像が選択されるときに、OSD重畳部301は、選択された医用画像の周囲に所定の色の枠を重畳することが好ましい。 When the medical image to be cut out is selected as shown in FIG. 9 or 10, it is preferable that the OSD superimposing unit 301 superimposes a frame of a predetermined color around the selected medical image.

以上のように、切り出し領域設定部308は、医用画像501〜504のうちの少なくとも1つの医用画像の矩形領域を単位として個別に切り出す第1の切り出し方法を選択することができる。切り出し領域設定部308は、医用画像501〜504のうちの2つ以上を含む複合画像を単位として切り出す第2の切り出し方法を選択することができる。切り出し領域設定部308は、入力された操作に応じて、いずれか一方の切り出し方法を選択して、選択された切り出し方法で画像50から医用画像を切り出す。 As described above, the cutout area setting unit 308 can select the first cutout method for individually cutting out the rectangular area of at least one of the medical images 501 to 504 as a unit. The cutout area setting unit 308 can select a second cutout method for cutting out a composite image including two or more of medical images 501 to 504 as a unit. The cutout area setting unit 308 selects one of the cutout methods according to the input operation, and cuts out the medical image from the image 50 by the selected cutout method.

切り出し領域設定部308は、さらに多くの切り出し方法からいずれか1つの切り出し方法を選択して、選択された切り出し方法で画像50から医用画像を切り出すこともできる。 The cutout area setting unit 308 can also select any one of the cutout methods from a larger number of cutout methods and cut out the medical image from the image 50 by the selected cutout method.

操作者は、モニタ3に表示されている画像50のうち必要な医用画像の領域のみを簡単な操作で切り出して記憶媒体4に記憶させることができる。 The operator can cut out only the necessary medical image area of the image 50 displayed on the monitor 3 by a simple operation and store it in the storage medium 4.

画像50のうち切り出す医用画像を順に切り替える代わりに、切り出し方を選択するように構成してもよい。図11に示すように、OSD重畳部301は、操作部309によって所定の操作がなされたときに、表示パネル303に切り出し方を選択するメニューを表示させる。OSD重畳部301は、画像50の代わりにメニューを表示パネル303に表示してもよいし、画像50にメニューを重畳してもよい。OSD重畳部301は、メニュー表示部として機能する。 Instead of switching the medical images to be cut out in order among the images 50, the cutting method may be selected. As shown in FIG. 11, the OSD superimposing unit 301 causes the display panel 303 to display a menu for selecting a cutting method when a predetermined operation is performed by the operation unit 309. The OSD superimposition unit 301 may display the menu on the display panel 303 instead of the image 50, or may superimpose the menu on the image 50. The OSD superimposition unit 301 functions as a menu display unit.

図11に示す例では、表示パネル303に、「各医用画像を個々に切り出して保存する」なる第1の選択肢、「医用画像の全体を切り出して保存する」なる第2の選択肢、「手動で医用画像を選択して保存する」なる第3の選択肢の3つの選択肢がメニューとして表示されている。第3の選択肢を省略して第1及び第2の選択肢のみとしてもよい。 In the example shown in FIG. 11, the display panel 303 has a first option of "cutting out and saving each medical image individually", a second option of "cutting out and saving the entire medical image", and "manually". Three options of the third option "Select and save the medical image" are displayed as a menu. The third option may be omitted and only the first and second options may be used.

第1の選択肢は、図9の(a)に示すように、医用画像501〜504の各領域を個別に切り出した4つの画像を記憶媒体4に記憶させる選択肢である。第2の選択肢は、図9の(f)に示すように、医用画像501〜504の全体を含む1つの複合画像500を切り出して記憶媒体4に記憶させる選択肢である。第3の選択肢は、図9または図10のように記憶媒体4に記憶させる医用画像を直接選択する選択肢である。 As shown in FIG. 9A, the first option is an option to store four images obtained by individually cutting out each region of the medical images 501 to 504 in the storage medium 4. The second option is, as shown in FIG. 9 (f), an option to cut out one composite image 500 including the entire medical images 501 to 504 and store it in the storage medium 4. The third option is the option of directly selecting the medical image to be stored in the storage medium 4 as shown in FIG. 9 or FIG.

第3の選択肢を選択したとき、第1の選択肢または2で選択される医用画像を除いた医用画像を順に切り替えるようにしてもよい。 When the third option is selected, the medical images excluding the medical image selected in the first option or the second option may be switched in order.

図12は、画像50内に医用画像511〜513が存在し、医用画像513の大きさが最も大きい場合を概念的に示している。この場合、図13に示すように、図11に示す第1〜第3の選択肢に加えて、「最大サイズの医用画像を切り出して保存する」なる第4の選択肢を追加することができる。 FIG. 12 conceptually shows a case where the medical images 511 to 513 exist in the image 50 and the size of the medical image 513 is the largest. In this case, as shown in FIG. 13, in addition to the first to third options shown in FIG. 11, a fourth option of "cutting out and storing the maximum size medical image" can be added.

第1の選択肢は、図14の(a)に示すように、医用画像511〜513の各領域を個別に切り出した3つの画像を記憶媒体4に記憶させる選択肢である。第4の選択肢は、図14の(b)に示すように、最大サイズの医用画像513を切り出して記憶媒体4に記憶させる選択肢である。第2の選択肢は、医用画像511〜513の全体を含む1つの複合画像510を切り出して記憶媒体4に記憶させる選択肢である。 As shown in FIG. 14A, the first option is an option to store in the storage medium 4 three images obtained by individually cutting out each region of the medical images 511 to 513. The fourth option is to cut out the maximum size medical image 513 and store it in the storage medium 4, as shown in FIG. 14 (b). The second option is an option to cut out one composite image 510 including the entire medical images 511 to 513 and store it in the storage medium 4.

ところで、モニタ3に表示される医用画像は、モノクロ画像である場合と、カラー画像である場合とがある。図8のようにモニタ3に複数の医用画像を表示しているとき、一部の医用画像がモノクロ画像であって他の一部の医用画像がカラー画像である場合がある。モニタ3は、モノクロ画像及びカラー画像それぞれに適切な画像処理を施して表示パネル303に表示することが必要である。 By the way, the medical image displayed on the monitor 3 may be a monochrome image or a color image. When a plurality of medical images are displayed on the monitor 3 as shown in FIG. 8, some medical images may be monochrome images and some other medical images may be color images. It is necessary for the monitor 3 to perform appropriate image processing on each of the monochrome image and the color image and display them on the display panel 303.

図15は、モノクロ画像とカラー画像とが混在した画像を表示する場合に好適なモニタ3の構成を示している。図15においては、図1との共通部分の図示を省略して、異なる部分を中心とした部分的な構成を示している。 FIG. 15 shows a configuration of a monitor 3 suitable for displaying an image in which a monochrome image and a color image are mixed. In FIG. 15, the illustration of the common portion with that of FIG. 1 is omitted, and a partial configuration centered on a different portion is shown.

図15において、カラー/モノクロ判定部321は、入力された画像50における領域検出部307で検出された医用画像の矩形領域ごとに、カラー画像であるかモノクロ画像であるかを判定する。ガンマテーブル生成部322は、カラー画像の矩形領域においては、DICOM GSDFと称されているガンマテーブルを生成し、モノクロ画像の矩形領域においては、ガンマ2.2のガンマテーブルを生成する。 In FIG. 15, the color / monochrome determination unit 321 determines whether the image is a color image or a monochrome image for each rectangular region of the medical image detected by the region detection unit 307 in the input image 50. The gamma table generation unit 322 generates a gamma table called DICOM GSDF in the rectangular region of the color image, and generates a gamma table of gamma 2.2 in the rectangular region of the monochrome image.

画像データを8ビットとすると、DICOM GSDF及びガンマ2.2のガンマテーブルは図16に示すような入出力特性を有する。ガンマテーブル生成部322は、計算式を用いた計算によってDICOM GSDF及びガンマ2.2のガンマテーブルを生成することができる。 Assuming that the image data is 8 bits, the DICOM GSDF and the gamma table of gamma 2.2 have input / output characteristics as shown in FIG. The gamma table generation unit 322 can generate a gamma table of DICOM GSDF and gamma 2.2 by calculation using a calculation formula.

ガンマテーブルを計算によって生成する代わりに、ガンマテーブルを示すルックアップテーブルを記憶部に記憶させておき、ルックアップテーブルを参照して画像データの出力値を決定してもよい。この場合、ガンマテーブル生成部322は、ガンマテーブル保持部である。 Instead of generating the gamma table by calculation, a lookup table indicating the gamma table may be stored in the storage unit, and the output value of the image data may be determined by referring to the lookup table. In this case, the gamma table generation unit 322 is a gamma table holding unit.

ガンマ補正部323は、ガンマテーブル生成部322で生成されたガンマテーブルに従って入力された画像50をガンマ補正して、OSD重畳部301に供給する。医用画像の矩形領域ごとにガンマテーブルが選択されるから、ガンマ補正部323はカラー画像の矩形領域とモノクロ画像の矩形領域とをそれぞれ適切にガンマ補正することができる。 The gamma correction unit 323 gamma-corrects the image 50 input according to the gamma table generated by the gamma table generation unit 322 and supplies it to the OSD superimposition unit 301. Since the gamma table is selected for each rectangular region of the medical image, the gamma correction unit 323 can appropriately gamma-correct the rectangular region of the color image and the rectangular region of the monochrome image.

カラー/モノクロ判定部321は、画像データを構成するRGB信号のR信号とG信号との差、R信号とB信号との差、G信号とB信号との差が所定の閾値以下で差が小さいときには、モノクロ画像であると判定する。カラー/モノクロ判定部321は、R信号とG信号との差、R信号とB信号との差、G信号とB信号との差のうちのいずれかが、閾値を超えて差が大きいときには、カラー画像であると判定する。差の閾値を調整可能としてもよい。 The color / monochrome determination unit 321 has a difference between the R signal and the G signal of the RGB signals constituting the image data, the difference between the R signal and the B signal, and the difference between the G signal and the B signal when they are equal to or less than a predetermined threshold value. When it is small, it is determined that the image is a monochrome image. When any of the difference between the R signal and the G signal, the difference between the R signal and the B signal, and the difference between the G signal and the B signal exceeds the threshold value, the color / monochrome determination unit 321 has a large difference. Judged as a color image. The difference threshold may be adjustable.

医用画像は、完全なグレーの画像ではなく、薄い青色または薄い緑色の画像である場合もある。そこで、カラー/モノクロ判定部321は、領域検出部307で検出された医用画像の矩形領域内の全ての画素においてR信号とG信号とB信号の比率が等しい、または、比率が所定の閾値以下で差が小さい所定の単一色の画像であるとき、モノクロ画像であると判定してもよい。比率の閾値を調整可能としてもよい。 The medical image may be a light blue or light green image rather than a full gray image. Therefore, the color / monochrome determination unit 321 has the same ratio of the R signal, the G signal, and the B signal in all the pixels in the rectangular region of the medical image detected by the region detection unit 307, or the ratio is equal to or less than a predetermined threshold value. When it is a predetermined single color image having a small difference between the two, it may be determined that the image is a monochrome image. The ratio threshold may be adjustable.

カラー/モノクロ判定部321は、ディレクトリ構造表示領域52及び機能選択メニュー表示領域53においても同様に、カラー画像であるかモノクロ画像であるかを判定する。ガンマ補正部323は、ディレクトリ構造表示領域52及び機能選択メニュー表示領域53においても同様に、ガンマテーブル生成部322で生成されたガンマテーブルに従って画像をガンマ補正する。 Similarly, the color / monochrome determination unit 321 determines whether the image is a color image or a monochrome image in the directory structure display area 52 and the function selection menu display area 53. Similarly, in the directory structure display area 52 and the function selection menu display area 53, the gamma correction unit 323 gamma corrects the image according to the gamma table generated by the gamma table generation unit 322.

以上説明した本実施形態の画像切り出し装置及び方法によれば、モニタに表示されている画像のうち必要な医用画像の領域のみを切り出すことができる。しかも、本実施形態の画像切り出し装置及び方法によれば、操作者が複雑な操作をする必要なく、簡単な操作で必要な医用画像の領域のみを切り出すことができる。 According to the image cropping apparatus and method of the present embodiment described above, only the necessary medical image region can be cropped from the image displayed on the monitor. Moreover, according to the image cutting device and method of the present embodiment, it is possible to cut out only the necessary medical image area by a simple operation without the need for the operator to perform complicated operations.

本実施形態の画像切り出し装置をモニタ3に設けることにより、ワークステーション2から医用画像のファイルを介して外部へと送信できない場合、または外部メモリに医用画像のファイルを書き込めない場合であっても、医用画像を外部メモリに書き込んで持ち出すことができる。 By providing the image cropping device of the present embodiment on the monitor 3, even if the medical image file cannot be transmitted from the workstation 2 to the outside via the medical image file, or the medical image file cannot be written to the external memory. Medical images can be written to an external memory and taken out.

本実施形態の画像切り出し装置及び方法によれば、モニタ3に表示されている画像をそのままキャプチャした画像ではなく、必要な医用画像の領域のみを切り出すことができる。よって、本実施形態の画像切り出し装置及び方法によれば、PACSサーバのディレクトリ構造または機能選択メニューのような不必要な領域を除外して切り出すことができる。 According to the image cutting device and method of the present embodiment, it is possible to cut out only a necessary medical image area, not an image obtained by capturing the image displayed on the monitor 3 as it is. Therefore, according to the image cropping device and method of the present embodiment, it is possible to exclude unnecessary areas such as the directory structure of the PACS server or the function selection menu.

本発明は以上説明した本実施形態に限定されることはなく、本発明の要旨を逸脱しない範囲において種々変更可能である。図1におけるモニタ3の内部構成を、ハードウェアで構成してもよいし、ソフトウェアで構成してもよい。ハードウェアとソフトウェアとの使い分けは任意であって、両者が混在していてもよい。 The present invention is not limited to the present embodiment described above, and various modifications can be made without departing from the gist of the present invention. The internal configuration of the monitor 3 in FIG. 1 may be configured by hardware or software. The proper use of hardware and software is arbitrary, and both may be mixed.

モニタ3の内部構成の一部をマイクロコンピュータまたはマイクロコンピュータのマイクロプロセッサで構成してもよい。二値化部305〜切り出し領域設定部308及び画像書き込み制御部311をマイクロプロセッサによって構成してもよい。画像メモリ304及び310を、マイクロコンピュータが備えるメモリで構成してもよい。 A part of the internal configuration of the monitor 3 may be configured by a microcomputer or a microprocessor of a microcomputer. The binarization unit 305-cutout area setting unit 308 and the image writing control unit 311 may be configured by a microprocessor. The image memories 304 and 310 may be configured by the memory provided in the microcomputer.

3 モニタ
4 記憶媒体
301 OSD重畳部
302 パネル駆動部
303 表示パネル
304,310 画像メモリ
305 二値化部
306 角部検出部
307 領域検出部
308 切り出し領域設定部
309 操作部
311 画像書き込み制御部
312 記憶媒体接続ポート
3 Monitor 4 Storage medium 301 OSD superimposition unit 302 Panel drive unit 303 Display panel 304,310 Image memory 305 Binarization unit 306 Square detection unit 307 Area detection unit 308 Cutout area setting unit 309 Operation unit 311 Image writing control unit 312 Storage Media connection port

Claims (4)

表示パネルに表示される、黒を背景とする領域を有する複数の画像を含む入力画像を黒レベルと白レベルに二値化する二値化部と、
前記二値化部によって二値化された二値化画像から、中心に注目画素を有する複数の画素からなるひし形の画素群を読み出して、読み出された前記ひし形の画素群が黒レベルの並び方に応じて矩形領域における角部をそれぞれ検出する4つのパターンと一致するか否かを判定し、角部の画素の位置を検出する角部検出部と、
前記角部検出部によって検出された角部の画素の位置に基づいて、前記複数の画像それぞれの矩形領域を検出する領域検出部と、
前記複数の画像のうちの最大の大きさを有する画像の矩形領域よりなる1つの画像を単位として切り出す第1の切り出し方法と、前記複数の画像のうちの2つ以上を含む複合画像を単位として切り出す第2の切り出し方法とを選択して、選択された切り出し方法で前記入力画像から画像を切り出す切り出し領域設定部と、
を備える画像切り出し装置。
A binarization unit that binarizes an input image that is displayed on the display panel and includes a plurality of images having a black background area into a black level and a white level.
From the binarized image binarized by the binarization unit, a diamond-shaped pixel group consisting of a plurality of pixels having a pixel of interest in the center is read out, and the read out diamond-shaped pixel group is arranged at a black level. A corner detection unit that determines whether or not it matches the four patterns that detect each corner in the rectangular region according to the above, and detects the position of the pixel of the corner.
A region detection unit that detects a rectangular region of each of the plurality of images based on the positions of the pixels of the corner portion detected by the corner detection unit.
A first cropping method for cropping one image consisting of a rectangular region of an image having the maximum size among the plurality of images as a unit, and a composite image including two or more of the plurality of images as a unit. A cutout area setting unit for cutting out an image from the input image by the selected cutout method by selecting a second cutout method for cutting out,
An image cropping device comprising.
前記角部検出部は、前記二値化画像において前記注目画素を1画素ずつずらしながら前記4つのパターンのいずれかに所定の割合以上で一致するか否かを判定し、角部の画素を探索する、
請求項1に記載の画像切り出し装置。
The corner detection unit determines whether or not the pixel of interest matches any of the four patterns at a predetermined ratio or more while shifting the pixel of interest by one pixel in the binarized image, and searches for the pixel at the corner. do,
The image cropping device according to claim 1.
前記角部検出部は、読み出した前記ひし形の画素群の画素の一部が存在しない場合、前記画素の一部が存在しない領域を前記二値化画像における上下または左右の端部の画素で補間し角部を検出する、
請求項2に記載の画像切り出し装置。
When a part of the pixels of the diamond-shaped pixel group read out does not exist, the corner detection unit interpolates the region where a part of the pixels does not exist with the pixels at the upper, lower, left and right ends in the binarized image. Detect the corners,
The image cropping device according to claim 2.
表示パネルに表示される、黒を背景とする領域を有する複数の画像を含む入力画像を黒レベルと白レベルに二値化し、
二値化された二値化画像から、中心に注目画素を有する複数の画素からなるひし形の画素群を読み出して、読み出された前記ひし形の画素群が黒レベルの並び方に応じて矩形領域における角部をそれぞれ検出する4つのパターンと一致するか否かを判定し、角部の画素の位置を検出し、
検出された角部の画素の位置に基づいて、前記複数の画像それぞれの矩形領域を検出し、
入力された操作に応じて、前記複数の画像のうちの最大の大きさを有する画像の矩形領域よりなる1つの画像を単位として切り出す第1の切り出し方法と、前記複数の画像のうちの2つ以上を含む複合画像を単位として切り出す第2の切り出し方法とのいずれか一方を選択し、
選択された切り出し方法で前記入力画像から画像を切り出す
画像切り出し方法。
The input image, which is displayed on the display panel and contains multiple images with a black background area, is binarized to black level and white level.
From the binarized binarized image, a diamond-shaped pixel group consisting of a plurality of pixels having a pixel of interest in the center is read out, and the read-out diamond-shaped pixel group is in a rectangular region according to the arrangement of the black level. It is determined whether or not it matches the four patterns for detecting each corner, and the positions of the pixels at the corners are detected.
Based on the detected pixel positions at the corners, a rectangular area of each of the plurality of images is detected.
A first cropping method for cropping one image consisting of a rectangular region of an image having the maximum size among the plurality of images according to an input operation, and two of the plurality of images. Select one of the second cropping methods for cropping the composite image including the above as a unit, and select one of them.
An image cropping method for cropping an image from the input image by the selected cropping method.
JP2021129973A 2017-12-26 2021-08-06 Image clipping device and method Active JP7248062B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2021129973A JP7248062B2 (en) 2017-12-26 2021-08-06 Image clipping device and method

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017249139A JP6930418B2 (en) 2017-12-26 2017-12-26 Image cropping device and method
JP2021129973A JP7248062B2 (en) 2017-12-26 2021-08-06 Image clipping device and method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2017249139A Division JP6930418B2 (en) 2017-12-26 2017-12-26 Image cropping device and method

Publications (2)

Publication Number Publication Date
JP2021169051A true JP2021169051A (en) 2021-10-28
JP7248062B2 JP7248062B2 (en) 2023-03-29

Family

ID=67223396

Family Applications (2)

Application Number Title Priority Date Filing Date
JP2017249139A Active JP6930418B2 (en) 2017-12-26 2017-12-26 Image cropping device and method
JP2021129973A Active JP7248062B2 (en) 2017-12-26 2021-08-06 Image clipping device and method

Family Applications Before (1)

Application Number Title Priority Date Filing Date
JP2017249139A Active JP6930418B2 (en) 2017-12-26 2017-12-26 Image cropping device and method

Country Status (1)

Country Link
JP (2) JP6930418B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6930418B2 (en) * 2017-12-26 2021-09-01 株式会社Jvcケンウッド Image cropping device and method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000285248A (en) * 1999-03-29 2000-10-13 Dainippon Printing Co Ltd Layout device for graphic object
JP2000342539A (en) * 1999-06-04 2000-12-12 Arei Kk Image processor and method therefor
JP2007507987A (en) * 2003-09-30 2007-03-29 インテル コーポレイション Rectangular motion search
WO2008035401A1 (en) * 2006-09-19 2008-03-27 Fujitsu Limited Electronic watermark embedding device and detection device
JP2009183342A (en) * 2008-02-04 2009-08-20 Hitachi Computer Peripherals Co Ltd Image processor
JP2013009293A (en) * 2011-05-20 2013-01-10 Sony Corp Image processing apparatus, image processing method, program, recording medium, and learning apparatus
US20160070978A1 (en) * 2014-09-05 2016-03-10 Samsung Electronics Co., Ltd. Digital image processing method, non-transitory computer-readable recording medium having recorded thereon a program for executing the digital image processing method, and digital image processing apparatus
JP2019111275A (en) * 2017-12-26 2019-07-11 株式会社Jvcケンウッド Image segmentation device and method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5978443A (en) * 1997-11-10 1999-11-02 General Electric Company Automated removal of background regions from radiographic images
JP4182465B2 (en) * 2001-10-18 2008-11-19 株式会社東芝 X-ray CT system
JP2007282771A (en) * 2006-04-14 2007-11-01 Konica Minolta Medical & Graphic Inc Medical information processor, and program

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000285248A (en) * 1999-03-29 2000-10-13 Dainippon Printing Co Ltd Layout device for graphic object
JP2000342539A (en) * 1999-06-04 2000-12-12 Arei Kk Image processor and method therefor
JP2007507987A (en) * 2003-09-30 2007-03-29 インテル コーポレイション Rectangular motion search
WO2008035401A1 (en) * 2006-09-19 2008-03-27 Fujitsu Limited Electronic watermark embedding device and detection device
JP2009183342A (en) * 2008-02-04 2009-08-20 Hitachi Computer Peripherals Co Ltd Image processor
JP2013009293A (en) * 2011-05-20 2013-01-10 Sony Corp Image processing apparatus, image processing method, program, recording medium, and learning apparatus
US20160070978A1 (en) * 2014-09-05 2016-03-10 Samsung Electronics Co., Ltd. Digital image processing method, non-transitory computer-readable recording medium having recorded thereon a program for executing the digital image processing method, and digital image processing apparatus
JP2019111275A (en) * 2017-12-26 2019-07-11 株式会社Jvcケンウッド Image segmentation device and method

Also Published As

Publication number Publication date
JP7248062B2 (en) 2023-03-29
JP6930418B2 (en) 2021-09-01
JP2019111275A (en) 2019-07-11

Similar Documents

Publication Publication Date Title
TWI467495B (en) Edge mapping using panchromatic pixels
JP5123212B2 (en) Interpolation of panchromatic and color pixels
US7652717B2 (en) White balance correction in digital camera images
US8112721B2 (en) Image reproduction device and method thereof
US20120050309A1 (en) Display control apparatus and display control method
JP2006079220A (en) Image retrieval device and method
US10528792B2 (en) Display apparatus and display control method for simultaneously displaying a plurality of images
JP7248062B2 (en) Image clipping device and method
JP2010537228A (en) Pixel aspect ratio correction using panchromatic pixels
KR20090022710A (en) Digital photographing apparatus, method for controlling the same, and recording medium storing program to implement the method
JP2007282771A (en) Medical information processor, and program
JP5181894B2 (en) Image processing apparatus and electronic camera
US10499859B2 (en) Image display apparatus, image display method, and storage medium
US6631499B1 (en) Laser image connectable to medical modality of a workstation
CN108735283B (en) Information processing apparatus, system, method, and storage medium
JP2005316958A (en) Red eye detection device, method, and program
JP2013114189A (en) Image display device and control method thereof
KR100846798B1 (en) Method and system for displaying pixilated input image
US7472994B2 (en) Ophthalmologic image pickup system
JP2007190208A (en) Comparative diagnostic reading support system
JP4717287B2 (en) Display device
JP6884662B2 (en) Signal processing device and signal processing method
JP2018143880A5 (en)
KR101396349B1 (en) Digital image processing apparatus including the rotating information of the image including a face and the method of controlling the same
JP2005164832A (en) Method and device for generating stereoscopic image and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20210806

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20220715

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20220823

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20221019

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20230214

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20230227

R150 Certificate of patent or registration of utility model

Ref document number: 7248062

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150