PROBLEM TO BE SOLVED: To provide an imaging device that can accurately calculate an effective pixel starting position in a solid-image pickup device irrespective of the light shielding structure of an endoscope itself, light distribution characteristic, assembling precision or the like.SOLUTION: An imaging device includes an imaging element 22 having plural pixels for generating and outputting an imaging signal based on signal charges generated in a photoelectric conversion unit, a substrate voltage VSUB controller 26 capable of setting the substrate voltage VSUB while switching a substrate voltage VSUB of the imaging element 22 between a first voltage and a second voltage which is lower than the first voltage and enables reverse-injection of charges into the photoelectric conversion unit, and FPGA 25 for extracting an edge of the imaging signal and calculating an effective pixel starting position. When calculating the effective pixel starting position, the substrate voltage VSUB is set to the second voltage to set the state where the charges are reversely injected in the photoelectric conversion unit, and then the edge is extracted to calculate the effective pixel starting position.SELECTED DRAWING: Figure 2【課題】内視鏡自体の遮光構造、配光特性または組立精度等によらず、固体撮像素子における有効画素開始位置を正確に算出する。【解決手段】光電変換部において生成した信号電荷に基づいて撮像信号を生成し出力するための複数の画素を備えた撮像素子22と、撮像素子22の基板電圧VSUBを第1の電圧と当該第1の電圧より低い電圧であって前記光電変換部に電荷を逆注入可能とする第2の電圧、とに切り替えて設定することを可能とする基板電圧VSUB制御部26と、撮像信号のエッジを抽出し有効画素開始位置を算出するFPGA25と、を備え、有効画素開始位置を算出する際は、基板電圧VSUBを第2の電圧に設定して光電変換部に電荷が逆注入された状態にせしめた後、前記エッジを抽出して有効画素開始位置を算出する。【選択図】図2