function [Dom, Aom, Answer, Bn] = Analysis(stats1, stats2, Line, Img, flag)
%%下区域分析
%答题区域默认为六个大区:1~20,21~40,41~60,61~75,76~90,91~105
if nargin < 5
flag = 1;
end
Line1 = Line{1};
Line2 = Line{2};
Line3 = Line{3};
Line4 = Line{4};
yn1 = round(Line1(1, 2) + 0.18*(Line2(1, 2)-Line1(1, 2)));
yn2 = round(Line1(1, 2) + 0.34*(Line2(1, 2)-Line1(1, 2)));
yn3 = round(Line1(1, 2) + 0.50*(Line2(1, 2)-Line1(1, 2)));
yn4 = round(Line1(1, 2) + 0.66*(Line2(1, 2)-Line1(1, 2)));
yn5 = round(Line1(1, 2) + 0.82*(Line2(1, 2)-Line1(1, 2)));
yn6 = round(Line1(1, 2) + 0.98*(Line2(1, 2)-Line1(1, 2)));
%下区域六条横线
Linen1_1 = [Line1(1, 1) yn1; Line1(2, 1) yn1];
Linen2_1 = [Line1(1, 1) yn2; Line1(2, 1) yn2];
Linen3_1 = [Line1(1, 1) yn3; Line1(2, 1) yn3];
Linen4_1 = [Line1(1, 1) yn4; Line1(2, 1) yn4];
Linen5_1 = [Line1(1, 1) yn5; Line1(2, 1) yn5];
Linen6_1 = [Line1(1, 1) yn6; Line1(2, 1) yn6];
% 定位竖直网格分割线
xn1 = round(Line3(1, 1) + 0.22*(Line4(1, 1)-Line3(1, 1)));
xn2 = round(Line3(1, 1) + 0.26*(Line4(1, 1)-Line3(1, 1)));
xn3 = round(Line3(1, 1) + 0.48*(Line4(1, 1)-Line3(1, 1)));
xn4 = round(Line3(1, 1) + 0.52*(Line4(1, 1)-Line3(1, 1)));
xn5 = round(Line3(1, 1) + 0.72*(Line4(1, 1)-Line3(1, 1)));
xn6 = round(Line3(1, 1) + 0.77*(Line4(1, 1)-Line3(1, 1)));
xn7 = round(Line3(1, 1) + 0.98*(Line4(1, 1)-Line3(1, 1)));
Linen1_2 = [xn1 Line3(1, 2); xn1 Line3(2, 2)];
Linen2_2 = [xn2 Line3(1, 2); xn2 Line3(2, 2)];
Linen3_2 = [xn3 Line3(1, 2); xn3 Line3(2, 2)];
Linen4_2 = [xn4 Line3(1, 2); xn4 Line3(2, 2)];
Linen5_2 = [xn5 Line3(1, 2); xn5 Line3(2, 2)];
Linen6_2 = [xn6 Line3(1, 2); xn6 Line3(2, 2)];
Linen7_2 = [xn7 Line3(1, 2); xn7 Line3(2, 2)];
%下区域一定位横网格线坐标计算
ym1_1 = round(Line1(1, 2) + 0.38*(Linen1_1(1, 2)-Line1(1, 2)));
ym2_1 = round(Line1(1, 2) + 0.5*(Linen1_1(1, 2)-Line1(1, 2)));
ym3_1 = round(Line1(1, 2) + 0.65*(Linen1_1(1, 2)-Line1(1, 2)));
ym4_1 = round(Line1(1, 2) + 0.80*(Linen1_1(1, 2)-Line1(1, 2)));
ym5_1 = round(Line1(1, 2) + 0.93*(Linen1_1(1, 2)-Line1(1, 2)));
%下区域一定位横网格线
Linem1_1 = [Line1(1, 1) ym1_1; Line1(2, 1) ym1_1];
Linem2_1 = [Line1(1, 1) ym2_1; Line1(2, 1) ym2_1];
Linem3_1 = [Line1(1, 1) ym3_1; Line1(2, 1) ym3_1];
Linem4_1 = [Line1(1, 1) ym4_1; Line1(2, 1) ym4_1];
Linem5_1 = [Line1(1, 1) ym5_1; Line1(2, 1) ym5_1];
%下区域二定位横网格线坐标计算
ym1_2 = round(Linen1_1(1, 2) + 0.30*(Linen2_1(1, 2)-Linen1_1(1, 2)));
ym2_2 = round(Linen1_1(1, 2) + 0.43*(Linen2_1(1, 2)-Linen1_1(1, 2)));
ym3_2 = round(Linen1_1(1, 2) + 0.60*(Linen2_1(1, 2)-Linen1_1(1, 2)));
ym4_2 = round(Linen1_1(1, 2) + 0.75*(Linen2_1(1, 2)-Linen1_1(1, 2)));
ym5_2 = round(Linen1_1(1, 2) + 0.90*(Linen2_1(1, 2)-Linen1_1(1, 2)));
%下区域二定位横网格线
Linem1_2 = [Line1(1, 1) ym1_2; Line1(2, 1) ym1_2];
Linem2_2 = [Line1(1, 1) ym2_2; Line1(2, 1) ym2_2];
Linem3_2 = [Line1(1, 1) ym3_2; Line1(2, 1) ym3_2];
Linem4_2 = [Line1(1, 1) ym4_2; Line1(2, 1) ym4_2];
Linem5_2 = [Line1(1, 1) ym5_2; Line1(2, 1) ym5_2];
%下区域三定位横网格线坐标计算
ym1_3 = round(Linen2_1(1, 2) + 0.25*(Linen3_1(1, 2)-Linen2_1(1, 2)));
ym2_3 = round(Linen2_1(1, 2) + 0.43*(Linen3_1(1, 2)-Linen2_1(1, 2)));
ym3_3 = round(Linen2_1(1, 2) + 0.60*(Linen3_1(1, 2)-Linen2_1(1, 2)));
ym4_3 = round(Linen2_1(1, 2) + 0.75*(Linen3_1(1, 2)-Linen2_1(1, 2)));
ym5_3 = round(Linen2_1(1, 2) + 0.90*(Linen3_1(1, 2)-Linen2_1(1, 2)));
%下区域三定位横网格线
Linem1_3 = [Line1(1, 1) ym1_3; Line1(2, 1) ym1_3];
Linem2_3 = [Line1(1, 1) ym2_3; Line1(2, 1) ym2_3];
Linem3_3 = [Line1(1, 1) ym3_3; Line1(2, 1) ym3_3];
Linem4_3 = [Line1(1, 1) ym4_3; Line1(2, 1) ym4_3];
Linem5_3 = [Line1(1, 1) ym5_3; Line1(2, 1) ym5_3];
%下区域四定位横网格线坐标计算
ym1_4 = round(Linen3_1(1, 2) + 0.25*(Linen4_1(1, 2)-Linen3_1(1, 2)));
ym2_4 = round(Linen3_1(1, 2) + 0.40*(Linen4_1(1, 2)-Linen3_1(1, 2)));
ym3_4 = round(Linen3_1(1, 2) + 0.60*(Linen4_1(1, 2)-Linen3_1(1, 2)));
ym4_4 = round(Linen3_1(1, 2) + 0.75*(Linen4_1(1, 2)-Linen3_1(1, 2)));
ym5_4 = round(Linen3_1(1, 2) + 0.90*(Linen4_1(1, 2)-Linen3_1(1, 2)));
%下区域四定位横网格线
Linem1_4 = [Line1(1, 1) ym1_4; Line1(2, 1) ym1_4];
Linem2_4 = [Line1(1, 1) ym2_4; Line1(2, 1) ym2_4];
Linem3_4 = [Line1(1, 1) ym3_4; Line1(2, 1) ym3_4];
Linem4_4 = [Line1(1, 1) ym4_4; Line1(2, 1) ym4_4];
Linem5_4 = [Line1(1, 1) ym5_4; Line1(2, 1) ym5_4];
%下区域五定位横网格线坐标计算
ym1_5 = round(Linen4_1(1, 2) + 0.25*(Linen5_1(1, 2)-Linen4_1(1, 2)));
ym2_5 = round(Linen4_1(1, 2) + 0.40*(Linen5_1(1, 2)-Linen4_1(1, 2)));
ym3_5 = round(Linen4_1(1, 2) + 0.57*(Linen5_1(1, 2)-Linen4_1(1, 2)));
ym4_5 = round(Linen4_1(1, 2) + 0.75*(Linen5_1(1, 2)-Linen4_1(1, 2)));
ym5_5 = round(Linen4_1(1, 2) + 0.90*(Linen5_1(1, 2)-Linen4_1(1, 2)));
%下区域五定位横网格线
Linem1_5 = [Line1(1, 1) ym1_5; Line1(2, 1) ym1_5];
Linem2_5 = [Line1(1, 1) ym2_5; Line1(2, 1) ym2_5];
Linem3_5 = [Line1(1, 1) ym3_5; Line1(2, 1) ym3_5];
Linem4_5 = [Line1(1, 1) ym4_5; Line1(2, 1) ym4_5];
Linem5_5 = [Line1(1, 1) ym5_5; Line1(2, 1) ym5_5];
%下区域六定位横网格线坐标计算
ym1_6 = round(Linen5_1(1, 2) + 0.25*(Linen6_1(1, 2)-Linen5_1(1, 2)));
ym2_6 = round(Linen5_1(1, 2) + 0.40*(Linen6_1(1, 2)-Linen5_1(1, 2)));
ym3_6 = round(Linen5_1(1, 2) + 0.57*(Linen6_1(1, 2)-Linen5_1(1, 2)));
ym4_6 = round(Linen5_1(1, 2) + 0.72*(Linen6_1(1, 2)-Linen5_1(1, 2)));
ym5_6 = round(Linen5_1(1, 2) + 0.88*(Linen6_1(1, 2)-Linen5_1(1, 2)));
%下区域六定位横网格线
Linem1_6 = [Line1(1, 1) ym1_6; Line1(2, 1) ym1_6];
Linem2_6 = [Line1(1, 1) ym2_6; Line1(2, 1) ym2_6];
Linem3_6 = [Line1(1, 1) ym3_6; Line1(2, 1) ym3_6];
Linem4_6 = [Line1(1, 1) ym4_6; Line1(2, 1) ym4_6];
Linem5_6 = [Line1(1, 1) ym5_6; Line1(2, 1) ym5_6];
%下区域一定位竖线坐标计算
xm1_1 = round(Line3(1, 1) + 0.07*(Linen1_2(1, 1)-Line3(1, 1)));
xm1_2 = round(Line3(1, 1) + 0.25*(Linen1_2(1, 1)-Line3(1, 1)));
xm1_3 = round(Line3(1, 1) + 0.43*(Linen1_2(1, 1)-Line3(1, 1)));
xm1_4 = round(Line3(1, 1) + 0.63*(Linen1_2(1, 1)-Line3(1, 1)));
xm1_5 = round(Line3(1, 1) + 0.80*(Linen1_2(1, 1)-Line3(1, 1)));
xm1_6 = round(Line3(1, 1) + 0.98*(Linen1_2(1, 1)-Line3(1, 1)));
%下区域一定位竖线
Linem1_1_2 = [xm1_1 Line3(1, 2); xm1_1 Line3(2, 2)];
Linem1_2_2 = [xm1_2 Line3(1, 2); xm1_2 Line3(2, 2)];
Linem1_3_2 = [xm1_3 Line3(1, 2); xm1_3 Line3(2, 2)];
Linem1_4_2 = [xm1_4 Line3(1, 2); xm1_4 Line3(2, 2)];
Linem1_5_2 = [xm1_5 Line3(1, 2); xm1_5 Line3(2, 2)];
Linem1_6_2 = [xm1_6 Line3(1, 2); xm1_6 Line3(2, 2)];
%下区域二定位竖线坐标计算
xm2_1 = round(Linen2_2(1, 1) + 0*(Linen3_2(1, 1)-Linen2_2(1, 1)));
xm2_2 = round(Linen2_2(1, 1) + 0.22*(Linen3_2(1, 1)-Linen2_2(1, 1)));
xm2_3 = round(Linen2_2(1, 1) + 0.41*(Linen3_2(1, 1)-Linen2_2(1, 1)));
xm2_4 = round(Linen2_2(1, 1) + 0.58*(Linen3_2(1, 1)-Linen2_2(1, 1)));
xm2_5 = round(Linen2_2(1, 1) + 0.78*(Linen3_2(1, 1)-Linen2_2(1, 1)));
xm2_6 = round(Linen2_2(1, 1) + 0.98*(Linen3_2(1, 1)-Linen2_2(1, 1)));
%下区域二定位竖线
Linem2_1_2 = [xm2_1 Line3(1, 2); xm2_1 Line3(2, 2)];
Linem2_2_2 = [xm2_2 Line3(1, 2); xm2_2 Line3(2, 2)];
Linem2_3_2 = [xm2_3 Line3(1, 2); xm2_3 Line3(2, 2)];
Linem2_4_2 = [xm2_4 Line3(1, 2); xm2_4 Line3(2, 2)];
Linem2_5_2 = [xm2_5 Line3(1, 2); xm2_5 Line3(2, 2)];
Linem2_6_2 = [xm2_6 Line3(1, 2); xm2_6 Line3(2, 2)];
%下区域三定位竖线坐标计算
xm3_1 = round(Linen4_2(1, 1) + 0*(Linen5_2(1, 1)-Linen4_2(1, 1)));
xm3_2 = round(Linen4_2(1, 1) + 0.19*(Linen5_2(1, 1)-Linen4_2(1, 1)));
xm3_3 = round(Linen4_2(1, 1) + 0.37*(Linen5_2(1, 1)-Linen4_2(1, 1)));
xm3_4 = round(Linen4_2(1, 1) + 0.58*(Linen5_2(1, 1)-Linen4_2(1, 1)));
xm3_5 = round(Linen4_2(1, 1) + 0.78*(Linen5_2(1, 1)-Linen4_2(1, 1)));
xm3_6 = round(Linen4_2(1, 1) + 1.00*(Linen5_2(1, 1)-Linen4_2(1, 1)));
%下区域三定位竖线
Linem3_1_2 = [xm3_1 Line3(1, 2); xm3_1 Line3(2, 2)];
Linem3_2_2 = [xm3_2 Line3(1, 2); xm3_2 Line3(2, 2)];
Linem3_3_2 = [xm3_3 Line3(1, 2); xm3_3 Line3(2, 2)];
Linem3_4_2 = [xm3_4 Line3(1, 2); xm3_4 Line3(2, 2)];
Linem3_5_2 = [xm3_5 Line3(1, 2); xm3_5 Line3(2,
Lau师傅
- 粉丝: 142
- 资源: 107
最新资源
- 将jar文件转换为exe
- C#ASP.NET企业出差休假管理系统源码(带经费审核)数据库 SQL2008源码类型 WebForm
- 浙江工业大学暑假实训-树莓派小车4WD(具有红外循迹,自动避障,opencv人脸检测,腾讯API接口实现人脸对比,语音识别功能)
- qwen2.5 + langchain pip依赖包
- edge-TTS-recordv0.1.1
- C#医生健康科普问答咨询平台(前端+后台)源码带手机端数据库 SQL2008源码类型 WebForm
- HaronyOS+BLE蓝牙DEMO
- hutool工具操作excel表格的依赖jar包
- python《树莓派使用OpenCV库实现人脸识别》+项目源码+文档说明
- 技术资料分享E文JPEG编解码介绍很好的技术资料.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈