JP7248062B2 - Image clipping device and method - Google Patents

Image clipping device and method Download PDF

Info

Publication number
JP7248062B2
JP7248062B2 JP2021129973A JP2021129973A JP7248062B2 JP 7248062 B2 JP7248062 B2 JP 7248062B2 JP 2021129973 A JP2021129973 A JP 2021129973A JP 2021129973 A JP2021129973 A JP 2021129973A JP 7248062 B2 JP7248062 B2 JP 7248062B2
Authority
JP
Japan
Prior art keywords
image
medical
pixels
unit
corner
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.)
Active
Application number
JP2021129973A
Other languages
Japanese (ja)
Other versions
JP2021169051A (en
Inventor
浩 竹下
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)

Description

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

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

特開2000-342539号公報JP-A-2000-342539

医用画像を患者または他の医療機関に渡す必要があるときがある。通常、医用画像はDICOM(Digital Imaging and Communications in Medicine)規格に準拠しており、DICOMビューワと称されるソフトウェアによってモニタに表示される。従って、医用画像そのものを患者に渡しても患者は医用画像を見ることができない。 There are times when medical images need to be delivered to a patient or other medical facility. Medical images usually conform to 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 handed over to the patient, the patient cannot view the medical image.

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

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

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

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

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

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

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

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

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

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

また、モニタ3は、画像メモリ304、二値化部305、角部検出部306、領域検出部307、切り出し領域設定部308、画像メモリ310、画像書き込み制御部311、記憶媒体接続ポート312を備える。これらは、モニタ3に表示されている画像のうち必要な医用画像の領域を切り出して外部メモリである記憶媒体4に書き込むために本実施形態において設けた構成である。 The monitor 3 also includes an image memory 304 , a binarization unit 305 , a corner detection unit 306 , an area detection unit 307 , a clipping 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 this embodiment for extracting a necessary medical image region 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 operating unit 309 . The panel driving unit 302 drives the display panel 303 to display images including medical images on the display panel 303 .

画像メモリ304は、表示パネル303に表示されている医用画像を含む画像を記憶する。二値化部305は、画像メモリ304より読み出された画像の各画素値を二値化する。具体的には、二値化部305は、所定の閾値以下の画素値を0、閾値を超える画素値を1とする。閾値は0であってもよいし、黒レベルのオフセットまたはノイズを考慮して、0よりもわずかに大きい値としてもよい。閾値を調整可能としてもよい。 The image memory 304 stores images including medical images displayed on the display panel 303 . A binarization unit 305 binarizes each pixel value of the image read from the image memory 304 . Specifically, the binarization unit 305 sets a pixel value equal to or lower than a predetermined threshold value to 0, and a pixel value exceeding the threshold value to 1. The threshold may be 0 or slightly greater than 0 to account for 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 which is displayed on the display panel 303 and includes a medical image 51 stored in the image memory 304 . An image 50 shown in FIG. 2 includes a medical image 51 obtained by photographing a part of the body, a directory structure display area 52 displaying a directory structure, and a function selection menu display area 53 displaying a function selection menu. and other images other than the medical image 51 are included.

医用画像51は、黒の背景に、身体が白またはグレーで表現されている。従って、二値化部305によって図2に示す画像50を二値化すると、背景の部分の画素値が0となり、身体の部分は画素値が1となる。ディレクトリ構造表示領域52と、機能選択メニュー表示領域53等の医用画像51以外の部分は、黒で表示された文字を除き、大方、画素値が1となる。 In the medical image 51, the body is expressed 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 directory structure display area 52, the function selection menu display area 53, and other portions other than the medical image 51 generally have a pixel value of 1, except for characters displayed in black.

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

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

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

角部検出部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. Some pixels may not exist. In such a case, the corner detection unit 306 interpolates pixels at pixel positions outside the image 50, as shown in FIG. As an example, the corner detection unit 306 interpolates pixels at pixel positions outside the image 50 with pixels at the top, bottom, left, and right edges 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 in the outer pixel positions are interpolated with the pixels P11 to P13 and P21, P31, P41, P51 located on the top line or left end. There are various methods for interpolating pixels at outer pixel positions, and the interpolation method is not limited to the one 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 is a pixel that matches at a predetermined ratio or more, the corner detection unit 306 stores the position information of that pixel in a built-in register. The predetermined ratio may be adjustable.

以上の処理によって、図6に示すように、角部検出部306は、医用画像51における左上角部の画素Pc1の位置と、右上角部の画素Pc2の位置と、左下角部の画素Pc3の位置と、右下角部の画素Pc4の位置とを検出する。 With the above processing, the corner detection unit 306 detects 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, as shown in FIG. position and the position of pixel Pc4 in the lower right corner.

領域検出部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 a 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 using the pattern TL and the horizontal pixel position detected using the pattern BL match within a predetermined error range. Second, the horizontal pixel position detected using the pattern TR and the horizontal pixel position detected using the pattern BR match within a predetermined error range. Third, the vertical pixel position detected using the pattern TL and the vertical pixel position detected using the pattern TR match within a predetermined error range. Fourth, the vertical pixel position detected using the pattern BL and the vertical pixel position detected 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 using the patterns TL, TR, BL, and BR stored in the register of the corner detection unit 306 are (x, y)=(100, 100), (300, 100), (100, 200), (300, 200). At this time, the area detection unit 307 detects an area having (x, y)=(100, 100) as the upper left corner and (x, y)=(300, 200) as the lower right corner as a rectangular area.

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

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

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

通常、医用画像の矩形領域は所定の範囲のアスペクト比を有し、過度に横長または縦長の矩形領域は医用画像の矩形領域ではない可能性が高い。そこで、領域検出部307は、所定の範囲から外れたアスペクト比を有する矩形領域を医用画像の矩形領域ではないとみなして除外することが好ましい。 A rectangular region of a medical image usually has an aspect ratio within a predetermined range, and a rectangular region that is excessively horizontally or vertically elongated is highly likely not to be a rectangular region of a medical image. Therefore, the area detection unit 307 preferably excludes rectangular areas having aspect ratios outside the predetermined range, assuming that they are not rectangular areas 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 an instruction to cut out the medical image 51 is given by the operation unit 309 , the cutout region setting unit 308 cuts out the region of the medical image 51 from the image 50 stored in the image memory 304 , and saves the cutout image in the image memory 310 . supply to An image memory 310 stores the clipped image.

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

記憶媒体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, and in this case the storage medium connection port 312 is the connection port of the memory card.

図8は、モニタ3への入力画像の他の例を示している。図8に示す画像50は、4つの医用画像501~504と、機能選択メニュー表示領域53とを含む。モニタ3に図2に示す画像50が入力された場合と同様に、表示パネル303は図8に示す画像50を表示し、画像メモリ304は図8に示す画像50を記憶する。 FIG. 8 shows another example of an input image to the monitor 3. In FIG. An image 50 shown in FIG. 8 includes four medical images 501 to 504 and a function selection menu display area 53 . 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に含まれる黒を背景とする矩形領域の角部の画素位置を検出する。 A binarization unit 305 binarizes the image 50 shown in FIG. 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の位置を検出する。 The 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. FIG. 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 detection unit 306 detects the pixel positions of the corners of a plurality of rectangular areas, the area detection unit 307 determines whether or not the above conditions are satisfied in each rectangular area. Detect rectangular regions. Furthermore, the region detection unit 307 detects a composite region (composite image) obtained by combining two or more of the plurality of rectangular regions as a rectangular region.

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

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

図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 a composite image 5013 including medical images 501 and 503 surrounded by pixels Pc11, Pc12, Pc33, and Pc34 as a rectangular region. As shown in (c) of FIG. 9, the region detection unit 307 detects a composite image 5024 including the medical images 502 and 504 surrounded by pixels Pc21, Pc22, Pc43, and Pc44 as a rectangular region.

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

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

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

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

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

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

図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 the medical images 501 and 503 is stored in the storage medium 4, and when (c) of FIG. , one composite image 5024 containing medical images 502 and 504 is stored.

図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 the medical images 501 and 502 is stored in the storage medium 4, and when (e) of FIG. , one composite image 5034 containing medical images 503 and 504 is stored.

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

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

図9または図10のように切り出す医用画像が選択されるときに、OSD重畳部301は、選択された医用画像の周囲に所定の色の枠を重畳することが好ましい。 When a medical image to be cut out is selected as shown in FIG. 9 or 10, the OSD superimposing unit 301 preferably 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 clipping region setting unit 308 can select the first clipping method for individually clipping each rectangular region of at least one of the medical images 501 to 504 . The clipping region setting unit 308 can select a second clipping method for clipping a composite image including two or more of the medical images 501 to 504 as a unit. The clipping region setting unit 308 selects one of the clipping methods according to the input operation, and clips a medical image from the image 50 by the selected clipping method.

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

操作者は、モニタ3に表示されている画像50のうち必要な医用画像の領域のみを簡単な操作で切り出して記憶媒体4に記憶させることができる。 The operator can cut out only the necessary medical image area from the image 50 displayed on the monitor 3 with 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 sequentially switching medical images to be clipped out of the image 50, the clipping 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 an extraction method when a predetermined operation is performed using the operation unit 309 . The OSD superimposing unit 301 may display a menu instead of the image 50 on the display panel 303 or may superimpose the menu on the image 50 . The OSD superimposing 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 displays a first option “Cut out and save each medical image individually”, a second option “Cut out and save the entire medical image”, and “Manually Three options of the third option "select and save medical images" 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に記憶させる医用画像を直接選択する選択肢である。 The first option, as shown in FIG. 9(a), is to store in the storage medium 4 four images obtained by cutting out the medical images 501 to 504 individually. The second option is to cut out one composite image 500 including all of the medical images 501 to 504 and store it in the storage medium 4, as shown in FIG. 9(f). A third option is to directly select a medical image to be stored in the storage medium 4 as shown in FIG. 9 or 10 .

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

図12は、画像50内に医用画像511~513が存在し、医用画像513の大きさが最も大きい場合を概念的に示している。この場合、図13に示すように、図11に示す第1~第3の選択肢に加えて、「最大サイズの医用画像を切り出して保存する」なる第4の選択肢を追加することができる。 FIG. 12 conceptually shows a case where medical images 511 to 513 exist within an 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, it is possible to add a fourth option of "cut out and save maximum size medical image".

第1の選択肢は、図14の(a)に示すように、医用画像511~513の各領域を個別に切り出した3つの画像を記憶媒体4に記憶させる選択肢である。第4の選択肢は、図14の(b)に示すように、最大サイズの医用画像513を切り出して記憶媒体4に記憶させる選択肢である。第2の選択肢は、医用画像511~513の全体を含む1つの複合画像510を切り出して記憶媒体4に記憶させる選択肢である。 The first option, as shown in FIG. 14(a), is to store in the storage medium 4 three images obtained by cutting out the respective regions of the medical images 511 to 513 individually. A fourth option is to cut out a maximum size medical image 513 and store it in the storage medium 4, as shown in FIG. 14(b). A second option is to cut out one composite image 510 including all of the 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 of the medical images may be monochrome images and some of the medical images may be color images. The monitor 3 is required to apply appropriate image processing to each of the monochrome image and the color image and display them on the display panel 303 .

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

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

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

ガンマテーブルを計算によって生成する代わりに、ガンマテーブルを示すルックアップテーブルを記憶部に記憶させておき、ルックアップテーブルを参照して画像データの出力値を決定してもよい。この場合、ガンマテーブル生成部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 generator 322 is a gamma table holder.

ガンマ補正部323は、ガンマテーブル生成部322で生成されたガンマテーブルに従って入力された画像50をガンマ補正して、OSD重畳部301に供給する。医用画像の矩形領域ごとにガンマテーブルが選択されるから、ガンマ補正部323はカラー画像の矩形領域とモノクロ画像の矩形領域とをそれぞれ適切にガンマ補正することができる。 The gamma correction unit 323 gamma-corrects the input image 50 according to the gamma table generated by the gamma table generation unit 322 and supplies the corrected image 50 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 determines whether 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 of the RGB signals that constitute the image data is equal to or less than a predetermined threshold value. When smaller, 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 a threshold value and is large, the color/monochrome determination unit 321 It is determined that the image is a color image. The difference threshold may be adjustable.

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

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

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

本実施形態の画像切り出し装置をモニタ3に設けることにより、ワークステーション2から医用画像のファイルを介して外部へと送信できない場合、または外部メモリに医用画像のファイルを書き込めない場合であっても、医用画像を外部メモリに書き込んで持ち出すことができる。 By providing the image cropping device of the present embodiment on the monitor 3, even if the workstation 2 cannot transmit the medical image file to the outside 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 clipping device and method of the present embodiment, it is possible to clip only the necessary medical image region instead of capturing the image displayed on the monitor 3 as it is. Therefore, according to the image clipping device and method of the present embodiment, it is possible to clip while excluding 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 embodiments 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 may be configured by 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 composed of a microcomputer or a microprocessor of a microcomputer. The binarization unit 305 to cutout area setting unit 308 and image writing control unit 311 may be configured by a microprocessor. The image memories 304 and 310 may be composed of memories provided in a microcomputer.

3 モニタ
4 記憶媒体
301 OSD重畳部
302 パネル駆動部
303 表示パネル
304,310 画像メモリ
305 二値化部
306 角部検出部
307 領域検出部
308 切り出し領域設定部
309 操作部
311 画像書き込み制御部
312 記憶媒体接続ポート
3 monitor 4 storage medium 301 OSD superimposing unit 302 panel driving unit 303 display panel 304, 310 image memory 305 binarization unit 306 corner detection unit 307 area detection unit 308 clipping 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 displayed on a display panel and including a plurality of medical images having a black background area into a black level and a white level;
A diamond-shaped pixel group consisting of a plurality of pixels having a target pixel in the center is read from the binarized image binarized by the binarization unit, and the read diamond-shaped pixel group is arranged in a black level arrangement. a corner detection unit for determining whether or not each pattern matches four patterns for detecting corners in a rectangular area in response to and detecting the positions of pixels in the corners;
an area detection unit that detects a rectangular area of each of the plurality of medical images based on the positions of the corner pixels detected by the corner detection unit;
One medical image consisting of a rectangular area having the largest size among the plurality of medical images
selecting a first extraction method for extracting a medical image as a unit and a second extraction method for extracting a composite image including two or more of the plurality of medical images as a unit; a clipping region setting unit for clipping a medical image from an input image;
An image cropping device comprising:
前記角部検出部は、前記二値化画像において前記注目画素を1画素ずつずらしながら前
記4つのパターンのいずれかに所定の割合以上で一致するか否かを判定し、角部の画素を
探索する、
請求項1に記載の画像切り出し装置。
The corner detection unit shifts the pixel of interest in the binarized image by one pixel and determines whether or not it matches any of the four patterns at a predetermined rate or more, thereby searching for corner pixels. do,
2. The image cropping device according to claim 1.
前記角部検出部は、読み出した前記ひし形の画素群の画素の一部が存在しない場合、前
記画素の一部が存在しない領域を前記二値化画像における上下または左右の端部の画素で
補間し角部を検出する、
請求項2に記載の画像切り出し装置。
The corner detection unit interpolates an area where some of the pixels do not exist with pixels at the top and bottom or left and right ends of the binarized image when some of the pixels of the pixel group read out do not exist. to detect corners,
3. The image cropping device according to claim 2.
表示パネルに表示される、黒を背景とする領域を有する複数の医用画像を含む入力画像
を黒レベルと白レベルに二値化し、
二値化された二値化画像から、中心に注目画素を有する複数の画素からなるひし形の画
素群を読み出して、読み出された前記ひし形の画素群が黒レベルの並び方に応じて矩形領
域における角部をそれぞれ検出する4つのパターンと一致するか否かを判定し、角部の画
素の位置を検出し、
検出された角部の画素の位置に基づいて、前記複数の医用画像それぞれの矩形領域を検
出し、
入力された操作に応じて、前記複数の医用画像のうちの最大の大きさを有する医用画像
の矩形領域よりなる1つの医用画像を単位として切り出す第1の切り出し方法と、前記複
数の医用画像のうちの2つ以上を含む複合画像を単位として切り出す第2の切り出し方法
とのいずれか一方を選択し、
選択された切り出し方法で前記入力画像から医用画像を切り出す
画像切り出し方法。
binarizing an input image displayed on a display panel and including a plurality of medical images having black background regions into black and white levels;
From the binarized binarized image, a rhombus-shaped pixel group consisting of a plurality of pixels having a target pixel in the center is read out, and the read out rhombus-shaped pixel group is arranged in a rectangular area according to the arrangement of the black levels. Determining whether or not it matches the four patterns for detecting each corner, detecting the position of the pixel at the corner,
Detecting a rectangular region in each of the plurality of medical images based on the detected corner pixel positions;
A first cropping method for cropping one medical image as a unit, which consists of a rectangular area of a medical image having the largest size among the plurality of medical images, according to an input operation; Selecting either one of a second extraction method for extracting a composite image containing two or more of them as a unit,
An image cropping method for cropping a medical image from the input image by a 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 JP2021169051A (en) 2021-10-28
JP7248062B2 true 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
JP2021169051A (en) 2021-10-28
JP6930418B2 (en) 2021-09-01
JP2019111275A (en) 2019-07-11

Similar Documents

Publication Publication Date Title
TWI467495B (en) Edge mapping using panchromatic pixels
US7652717B2 (en) White balance correction in digital camera images
US8705824B2 (en) Apparatus and method for ordering stored images
US10972705B2 (en) Medical display apparatus, endoscopic surgery system, and method of displaying medical image
JP7248062B2 (en) Image clipping device and method
US20120050309A1 (en) Display control apparatus and display control method
JP2006079220A (en) Image retrieval device and method
JP5509173B2 (en) Display device and display method
JP4721865B2 (en) Medical image display device
US20140139402A1 (en) Method for producing logical area-based hanging protocols for multiple monitor workstations
JP2007282771A (en) Medical information processor, and program
JP2006271800A (en) Image processing apparatus, method and program
US10499859B2 (en) Image display apparatus, image display method, and storage medium
US20050248664A1 (en) Identifying red eye in digital camera images
CN108735283B (en) Information processing apparatus, system, method, and storage medium
JP2013114189A (en) Image display device and control method thereof
US6418237B1 (en) Abnormal pattern detection processing method and system and image display terminal
CN106814987B (en) Display method and device
KR100846798B1 (en) Method and system for displaying pixilated input image
US20090195548A1 (en) Method and Apparatus for Improved Display of Digital Mammographic Images
US7472994B2 (en) Ophthalmologic image pickup system
JP4717287B2 (en) Display device
US20060115136A1 (en) Image processing method and apparatus
US20230200766A1 (en) Medical image display device
US10964021B2 (en) Information processing apparatus, information processing method, and information processing system

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