[VB.NET] 차근차근 OpenCVSharp 강좌 - 7. 자르기
메인폼에 버튼 추가 - Name : ButtonClip, Text : Clip 버튼 클릭 이벤트에 아래 소스를 추가해서 확인해보자. Private Sub ButtonClip_Click(sender As Object, e As EventArgs) Handles ButtonClip.Click Dim org As New Mat("D:\test\chipmunk.jpg", ImreadModes.Color) Dim dst As Mat = org.SubMat(New Rect(600, 600, 600, 600)) PictureBoxOrg.Image = org.ToBitmap : PictureBoxDst.Image = dst.ToBitmap End Sub 프로젝트 실행후 Clip 버튼을 누르면 아래 화면과 같이 결과가 ..
2023.01.19