Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这个问题可能很基本,所以请多多包涵。我有 4 个像素坐标和一个图像。我想单独分割这4个点内的图像部分并制作一个新图像。你能告诉我最简单的方法吗?
除了 input image 之外,看看roipolyusingr和inputs 。cI
roipoly
r
c
I
假设您有一个与您的像素xcoord匹配的坐标列表ycoord并希望拥有包含您的像素的最小正方形:
xcoord
ycoord
myImage = rand(100) xcoord = [12 16 22 82]; ycoord = [24 70 12 34]; mySegment = myImage(xcoord(min):xcoord(max),ycoord(min):ycoord(max))