본 논문에서는 젤닥 장치내의 전기영동 젤을 촬영한 영상 이미지를 자동으로 정렬하는 방법을 제안한다. 전기영동 작업이 완료된 젤은 수작업에 의해서 젤닥 장치내에 놓이고 되고, 그로 인해 젤의 위치 정렬이 부정확한 경우가 빈번하게 발생한다. 제안된 방법은 촬영된 젤 영상 이미지를 회전시키면서 수직 프로파일 정보를 계산하고, 계산된 수직 프로파일의 표준 편차가 가장 높은 회전 이미지를 정렬된 이미지로 선택하는 방법이다. 산업체에서 사용하는 젤 영상 이미지들을 분석하는 실험에서, 제안된 방법이 오류 없이 젤 이미지를 정렬하였고 또한 영상 분석 정확도를 평균적으로 약 45% 그리고 최대 210% 향상시키는 것을 확인하였다. 그리고 기존의 방법에서 잘못된 위치 정렬로 인해서 영상 이미지 분석이 불가능한 경우에 대해서도, 제안된 방법이 자동 위치 정렬로 영상 이미지 분석이 가능하도록 전환시켜주는 기능이 있음을 확인하였다.In this paper, we propose an automatic alignment method for gel images in gel documentation devices. Electrophoresis gels are placed manually in gel documentation devices and thus the alignment of electrophoresis gels becomes wrong frequently. The proposed method rotates the pictured image bit by bit, calculates vertical profiles of all rotated images, and finally selects the rotated image with the highest standard deviation of vertical profiles as the aligned image. In experimental evaluation adopting practical agarose gel images used in industries, the proposed method aligns the agarose gel image precisely in all cases and increases the performance of image analysis by about 45% in the average case and 210% in the best case. Also, for some case of infeasible image analysis in the previous method due to severely wrong alignment, the proposed method makes its image analysis feasible through alignment correction.