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.
我必须从二进制图像中绘制一个图(使用矩阵 MN)。我使用水平积分投影来查找行的平均值。在那之后,我想要最小平均坐标做一条水平线。
水平线怎么画?
很难说出你在问什么,但这里有一些代码可能会有所帮助。它对图像的行求和,找到最小和,然后在具有最小和的行上绘制图像加上一条水平线。
x = rand(50); [~,i] = min(sum(x,2)); figure imagesc(x) hold on plot(xlim, [i i], 'w')
我想要一个表单,在提交和验证后会打开一个包含结果的新选项卡。我使用该<h:form target="_blank"方法获取新选项卡,但它在新选项卡中显示验证错误。如果验证通过,我希望它只打开新选项卡。
<h:form target="_blank"
我的猜测是唯一真正的跨浏览器解决方案是在提交时进行一些 SJAX 验证,但我不确定是否有任何库可以