Commit 8d8622699f98332ade1c13984150e48f7c0f4175

Authored by Nikita Kulshreshtha
1 parent 528471bd

commit

400-SOURCECODE/AIAHTML5.API/App_Start/WebApiConfig.cs
1   -using System;
2   -using System.Collections.Generic;
3   -using System.Linq;
4   -using System.Web.Http;
5   -
6   -namespace AIAHTML5.API
7   -{
8   - public static class WebApiConfig
9   - {
10   - public static void Register(HttpConfiguration config)
11   - {
12   - // Web API configuration and services
13   -
14   - // Web API routes
15   - config.MapHttpAttributeRoutes();
16   -
17   - config.Routes.MapHttpRoute(
18   - name: "DefaultApi",
19   - routeTemplate: "api/{controller}/{id}",
20   - defaults: new { id = RouteParameter.Optional }
21   - );
22   - }
23   - }
24   -}
  1 +using System;
  2 +using System.Collections.Generic;
  3 +using System.Linq;
  4 +using System.Web.Http;
  5 +
  6 +namespace AIAHTML5.API
  7 +{
  8 + public static class WebApiConfig
  9 + {
  10 + public static void Register(HttpConfiguration config)
  11 + {
  12 + // Web API configuration and services
  13 +
  14 + // Web API routes
  15 + config.MapHttpAttributeRoutes();
  16 +
  17 + config.Routes.MapHttpRoute(
  18 + name: "DefaultApi",
  19 + routeTemplate: "api/{controller}/{id}",
  20 + defaults: new { id = RouteParameter.Optional }
  21 + );
  22 + }
  23 + }
  24 +}
... ...
400-SOURCECODE/AIAHTML5.Web/app/controllers/3dAController.js
1   -AIA.controller("3dAController", ["$scope", "$rootScope", "pages", "$log", '$http', 'DataService', '$filter', '$location', '$document', '$sce', "$compile",
2   -function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location, $document, $sce, $compile) {
3   -
4   -
5   - $scope.showTabButton = false;
6   - $scope.threeDAnatomyData;
7   - $scope.Id;
8   - $scope.$on('$viewContentLoaded', function (event) {
9   - var currentURL = $location.path();
10   - var selectedModuleName = '';
11   - //set module title
12   - angular.forEach($rootScope.userModules, function (value, key) {
13   - if (value.slug === currentURL.replace('/', '')) {
14   - selectedModuleName = value.name;
15   - }
16   - $rootScope.currentActiveModuleTitle = selectedModuleName;
17   - })
18   - if ($rootScope.refreshcheck == null) {
19   - $location.path('/');
20   - }
21   - $scope.scroll();
22   - var promise = DataService.getJson('~/../content/data/json/3da/3da_dat_contentlist.json')
23   - promise.then(
24   - function (result) {
25   - $scope.threeDAnatomyData = result;
26   -
27   - // $scope.selectedThreeDAdata = $scope.threeDAnatomyData.root.ThreeDAData;
28   -
29   - $scope.selectedThreeDAdata = new jinqJs()
30   - .from($scope.threeDAnatomyData.root.ThreeDAData)
31   - .orderBy([{ field: '_Title', sort: 'asc' }])
32   - .select();
33   -
34   - // console.log($scope.selectedCIListViewData);
35   - $('#grid-view').empty();
36   - angular.forEach($scope.selectedThreeDAdata, function (value, key) {
37   - $scope.imagePath = "~/../content/images/3da/thumbnails/" + value._ThumbnailImage;
38   -
39   - var $el = $('<div id="3dView' + value._id + '" class="col-sm-3 col-md-2" title = "' + value._Title + '">'
40   - + '<div class="thumbnail">'
41   - + '<img id="' + value._id + '"ng-src="' + $scope.imagePath + '" alt="" title="' + value._Title + '" data-ng-click="Open3DModel($event)" >'
42   - + '<div class="caption"><p>' + value._Title + '</p></div></div></div>').appendTo('#grid-view');
43   -
44   -
45   - $compile($el)($scope);
46   -
47   - $(".sidebar").mCustomScrollbar({
48   - autoHideScrollbar: true,
49   - //theme:"rounded"
50   - });
51   -
52   - });
53   -
54   - },
55   - function (error) {
56   - // handle errors here
57   - console.log(' $scope.threeDAnatomyData = ' + error.statusText);
58   - }
59   - );
60   -
61   - });
62   - $scope.scroll = function () {
63   - // $window.scrollTo(0, 0);
64   - $("html,body").scrollTop(0);
65   - //alert("scroll");
66   - }
67   - $scope.IsVisible = function () {
68   - //$scope.scroll();
69   -
70   - $location.url("/3dAnatomy");
71   -
72   - }
73   -
74   -
75   - $scope.Open3DModel = function ($event) {
76   - $rootScope.currentBodyViewId = $event.currentTarget.id;
77   - if ($event.currentTarget.textContent !== null && typeof ($event.currentTarget.textContent) !== "undefined") {
78   - var ThreeDTitle = [];
79   - ThreeDTitle = new jinqJs()
80   - .from($scope.selectedThreeDAdata)
81   - .where('_id = ' + $event.currentTarget.id)
82   - .select('_Title');
83   -
84   - $rootScope.ViewTitle = ThreeDTitle[0]._Title;
85   - }
86   - else {
87   - $rootScope.ViewTitle = $event.currentTarget.textContent;
88   -
89   - }
90   -
91   -
92   - localStorage.setItem("currentViewTitleFromJson", $rootScope.ViewTitle);
93   - localStorage.setItem("currentBodyViewId", $event.currentTarget.id);
94   -
95   - var u = $location.url();
96   - $location.url('/3d-anatomy-details');
97   -
98   - }
99   -
100   - $scope.Open3DModelBody = function () {
101   -
102   - if ($rootScope.refreshcheck == null) {
103   - $location.path('/');
104   -
105   - }
106   - $rootScope.isLoading = true;
107   - $('#spinner').css('visibility', 'visible');
108   - //alert($rootScope.getLocalStorageValue("currentBodyViewId"));
109   - $scope.voId3D = $rootScope.getLocalStorageValue("currentBodyViewId");
110   -
111   - //alert($scope.voId3D);
112   -
113   -
114   - //once you get id in scope push detail in jspanel content
115   -
116   - var openViews;
117   - if ($rootScope.openViews.length > 0) {
118   - openViews = new jinqJs()
119   - .from($rootScope.openViews)
120   - .where("BodyViewId==" + $scope.voId3D)
121   - .select();
122   - }
123   - var counter = 1;
124   - var tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson");
125   -
126   - if (openViews != null && openViews.length > 0) {
127   - angular.forEach(openViews, function (value, key) {
128   -
129   - if (value.body - views == tittle) {
130   - tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson") + counter++;
131   - $rootScope.currentActiveViewTitle = tittle;
132   - localStorage.setItem("currentViewTitle", tittle);
133   - }
134   -
135   - });
136   - }
137   - else {
138   - localStorage.setItem("currentViewTitle", tittle);
139   -
140   - }
141   -
142   - // alert($rootScope.getLocalStorageValue("currentViewTitle"));
143   -
144   - var promise = DataService.getJson('~/../content/data/json/3da/3da_dat_contentlist.json')
145   - promise.then(
146   - function (result) {
147   - $scope.threeDAnatomyData = result;
148   -
149   - var clicked3dAview = [];
150   - clicked3dAview = new jinqJs().from($scope.threeDAnatomyData.root.ThreeDAData)
151   - .where('_id == ' + $scope.voId3D)
152   - .select('_Title', '_3dimagepath');
153   - $scope.Selected3DImagePath = clicked3dAview[0]._3dimagepath;
154   - $scope.threeDBodySystemTitle = clicked3dAview[0]._Title;
155   -
156   - if (clicked3dAview.length > 0) {
157   -
158   - $rootScope.isLoading = false;
159   - $('#spinner').css('visibility', 'hidden');
160   -
161   - $.jsPanel({
162   - id: '3DImagePanel',
163   - selector: '.threeDView',
164   - theme: 'success',
165   - currentController: '3dAController',
166   - parentSlug: '3d-anatomy-list',
167   - content: '<div class="col-sm-12">' +
168   - '<object data="' + $scope.Selected3DImagePath + '" width="100%" height="800px" type="image/svg+xml"></object>' +
169   - '</div><script>$(document).ready(function(){var $ua = navigator.userAgent; if (($ua.match(/(iPod|iPhone|iPad|android)/i))) {var threeDivWidth = $("#ThreeDView").css("width");$("#ThreeDView").css({"left":"0px","width":"100%","min-idth": threeDivWidth}); var jspanelContainerWidth = $(".jsPanel-content").css("width"); $(".jsPanel-content").css({ "width": "100%", "min-width": jspanelContainerWidth}); $("#3DImagePanel").css("width", "100%"); }});</script>',
170   - title: $rootScope.getLocalStorageValue("currentViewTitle"),
171   - position: {
172   - top: 70,
173   - left: 1,
174   - },
175   -
176   - size: { width: $(window).outerWidth() - 20, height: $(window).outerHeight() - 10 },
177   -
178   - });
179   -
180   - $rootScope.currentSlug = '3d-anatomy-details';
181   -
182   - $rootScope.openViews.push(
183   - {
184   - "module": $rootScope.currentActiveModuleTitle, "bodyView": tittle, "state": 'max', "BodyViewId": $rootScope.currentBodyViewId,
185   - "slug": $rootScope.currentSlug
186   - });
187   -
188   -
189   - }
190   -
191   -
192   - },
193   - function (error) {
194   - // handle errors here
195   - console.log(' $scope.CIllustrationData = ' + error.statusText);
196   - }
197   -
198   - );
199   - $('#ThreeDView').css("height", $(window).outerHeight());
200   -
201   - $('#ThreeDView').css("width", $(window).outerWidth());
202   -
203   - }
204   -
205   -
206   -
207   -}]
208   -
209   -
210   -
  1 +AIA.controller("3dAController", ["$scope", "$rootScope", "pages", "$log", '$http', 'DataService', '$filter', '$location', '$document', '$sce', "$compile",
  2 +function ($scope, $rootScope, pages, log, $http, DataService, $filter, $location, $document, $sce, $compile) {
  3 +
  4 +
  5 + $scope.showTabButton = false;
  6 + $scope.threeDAnatomyData;
  7 + $scope.Id;
  8 + $scope.$on('$viewContentLoaded', function (event) {
  9 + var currentURL = $location.path();
  10 + var selectedModuleName = '';
  11 + //set module title
  12 + angular.forEach($rootScope.userModules, function (value, key) {
  13 + if (value.slug === currentURL.replace('/', '')) {
  14 + selectedModuleName = value.name;
  15 + }
  16 + $rootScope.currentActiveModuleTitle = selectedModuleName;
  17 + })
  18 + if ($rootScope.refreshcheck == null) {
  19 + $location.path('/');
  20 + }
  21 + $scope.scroll();
  22 + var promise = DataService.getJson('~/../content/data/json/3da/3da_dat_contentlist.json')
  23 + promise.then(
  24 + function (result) {
  25 + $scope.threeDAnatomyData = result;
  26 +
  27 + // $scope.selectedThreeDAdata = $scope.threeDAnatomyData.root.ThreeDAData;
  28 +
  29 + $scope.selectedThreeDAdata = new jinqJs()
  30 + .from($scope.threeDAnatomyData.root.ThreeDAData)
  31 + .orderBy([{ field: '_Title', sort: 'asc' }])
  32 + .select();
  33 +
  34 + // console.log($scope.selectedCIListViewData);
  35 + $('#grid-view').empty();
  36 + angular.forEach($scope.selectedThreeDAdata, function (value, key) {
  37 + $scope.imagePath = "~/../content/images/3da/thumbnails/" + value._ThumbnailImage;
  38 +
  39 + var $el = $('<div id="3dView' + value._id + '" class="col-sm-3 col-md-2" title = "' + value._Title + '">'
  40 + + '<div class="thumbnail">'
  41 + + '<img id="' + value._id + '"ng-src="' + $scope.imagePath + '" alt="" title="' + value._Title + '" data-ng-click="Open3DModel($event)" >'
  42 + + '<div class="caption"><p>' + value._Title + '</p></div></div></div>').appendTo('#grid-view');
  43 +
  44 +
  45 + $compile($el)($scope);
  46 +
  47 + $(".sidebar").mCustomScrollbar({
  48 + autoHideScrollbar: true,
  49 + //theme:"rounded"
  50 + });
  51 +
  52 + });
  53 +
  54 + },
  55 + function (error) {
  56 + // handle errors here
  57 + console.log(' $scope.threeDAnatomyData = ' + error.statusText);
  58 + }
  59 + );
  60 +
  61 + });
  62 + $scope.scroll = function () {
  63 + // $window.scrollTo(0, 0);
  64 + $("html,body").scrollTop(0);
  65 + //alert("scroll");
  66 + }
  67 + $scope.IsVisible = function () {
  68 + //$scope.scroll();
  69 +
  70 + $location.url("/3dAnatomy");
  71 +
  72 + }
  73 +
  74 +
  75 + $scope.Open3DModel = function ($event) {
  76 + $rootScope.currentBodyViewId = $event.currentTarget.id;
  77 + if ($event.currentTarget.textContent !== null && typeof ($event.currentTarget.textContent) !== "undefined") {
  78 + var ThreeDTitle = [];
  79 + ThreeDTitle = new jinqJs()
  80 + .from($scope.selectedThreeDAdata)
  81 + .where('_id = ' + $event.currentTarget.id)
  82 + .select('_Title');
  83 +
  84 + $rootScope.ViewTitle = ThreeDTitle[0]._Title;
  85 + }
  86 + else {
  87 + $rootScope.ViewTitle = $event.currentTarget.textContent;
  88 +
  89 + }
  90 +
  91 +
  92 + localStorage.setItem("currentViewTitleFromJson", $rootScope.ViewTitle);
  93 + localStorage.setItem("currentBodyViewId", $event.currentTarget.id);
  94 +
  95 + var u = $location.url();
  96 + $location.url('/3d-anatomy-details');
  97 +
  98 + }
  99 +
  100 + $scope.Open3DModelBody = function () {
  101 +
  102 + if ($rootScope.refreshcheck == null) {
  103 + $location.path('/');
  104 +
  105 + }
  106 + $rootScope.isLoading = true;
  107 + $('#spinner').css('visibility', 'visible');
  108 + //alert($rootScope.getLocalStorageValue("currentBodyViewId"));
  109 + $scope.voId3D = $rootScope.getLocalStorageValue("currentBodyViewId");
  110 +
  111 + //alert($scope.voId3D);
  112 +
  113 +
  114 + //once you get id in scope push detail in jspanel content
  115 +
  116 + var openViews;
  117 + if ($rootScope.openViews.length > 0) {
  118 + openViews = new jinqJs()
  119 + .from($rootScope.openViews)
  120 + .where("BodyViewId==" + $scope.voId3D)
  121 + .select();
  122 + }
  123 + var counter = 1;
  124 + var tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson");
  125 +
  126 + if (openViews != null && openViews.length > 0) {
  127 + angular.forEach(openViews, function (value, key) {
  128 +
  129 + if (value.body - views == tittle) {
  130 + tittle = $rootScope.getLocalStorageValue("currentViewTitleFromJson") + counter++;
  131 + $rootScope.currentActiveViewTitle = tittle;
  132 + localStorage.setItem("currentViewTitle", tittle);
  133 + }
  134 +
  135 + });
  136 + }
  137 + else {
  138 + localStorage.setItem("currentViewTitle", tittle);
  139 +
  140 + }
  141 +
  142 + // alert($rootScope.getLocalStorageValue("currentViewTitle"));
  143 +
  144 + var promise = DataService.getJson('~/../content/data/json/3da/3da_dat_contentlist.json')
  145 + promise.then(
  146 + function (result) {
  147 + $scope.threeDAnatomyData = result;
  148 +
  149 + var clicked3dAview = [];
  150 + clicked3dAview = new jinqJs().from($scope.threeDAnatomyData.root.ThreeDAData)
  151 + .where('_id == ' + $scope.voId3D)
  152 + .select('_Title', '_3dimagepath');
  153 + $scope.Selected3DImagePath = clicked3dAview[0]._3dimagepath;
  154 + $scope.threeDBodySystemTitle = clicked3dAview[0]._Title;
  155 +
  156 + if (clicked3dAview.length > 0) {
  157 +
  158 + $rootScope.isLoading = false;
  159 + $('#spinner').css('visibility', 'hidden');
  160 +
  161 + $.jsPanel({
  162 + id: '3DImagePanel',
  163 + selector: '.threeDView',
  164 + theme: 'success',
  165 + currentController: '3dAController',
  166 + parentSlug: '3d-anatomy-list',
  167 + content: '<div class="col-sm-12">' +
  168 + '<object data="' + $scope.Selected3DImagePath + '" width="100%" height="800px" type="image/svg+xml"></object>' +
  169 + '</div><script>$(document).ready(function(){var $ua = navigator.userAgent; if (($ua.match(/(iPod|iPhone|iPad|android)/i))) {var threeDivWidth = $("#ThreeDView").css("width");$("#ThreeDView").css({"left":"0px","width":"100%","min-idth": threeDivWidth}); var jspanelContainerWidth = $(".jsPanel-content").css("width"); $(".jsPanel-content").css({ "width": "100%", "min-width": jspanelContainerWidth}); $("#3DImagePanel").css("width", "100%"); }});</script>',
  170 + title: $rootScope.getLocalStorageValue("currentViewTitle"),
  171 + position: {
  172 + top: 70,
  173 + left: 1,
  174 + },
  175 +
  176 + size: { width: $(window).outerWidth() - 20, height: $(window).outerHeight() - 10 },
  177 +
  178 + });
  179 +
  180 + $rootScope.currentSlug = '3d-anatomy-details';
  181 +
  182 + $rootScope.openViews.push(
  183 + {
  184 + "module": $rootScope.currentActiveModuleTitle, "bodyView": tittle, "state": 'max', "BodyViewId": $rootScope.currentBodyViewId,
  185 + "slug": $rootScope.currentSlug
  186 + });
  187 +
  188 +
  189 + }
  190 +
  191 +
  192 + },
  193 + function (error) {
  194 + // handle errors here
  195 + console.log(' $scope.CIllustrationData = ' + error.statusText);
  196 + }
  197 +
  198 + );
  199 + $('#ThreeDView').css("height", $(window).outerHeight());
  200 +
  201 + $('#ThreeDView').css("width", $(window).outerWidth());
  202 +
  203 + }
  204 +
  205 +
  206 +
  207 +}]
  208 +
  209 +
  210 +
211 211 );
212 212 \ No newline at end of file
... ...
400-SOURCECODE/AIAHTML5.Web/term-number-wp1.js
1   -var UpdatedGrayImageDataList = [];
2   -var doneBRID = [];
3   -var abc = 'hello';
4   -
5   -getLocationForMatchedTermsInWholeBody = function (termList, maskCanvasData, coloredImageCanvasList, coloredImageMRCanvasList, grayImageDataList, grayImageMRDataList) {
6   - var matchedRGBLocationInBodyRegion = [];
7   - var matched;
8   -
9   - for (var x = 0; x < maskCanvasData.length; x++)
10   - {
11   -
12   - matched = false;
13   - var bodyRegionId = maskCanvasData[x].bodyRegionId;
14   - var canvasId = maskCanvasData[x].canvasId;
15   - var maskData = maskCanvasData[x].maskData;
16   -
17   - var coloredImageDataVar//= coloredImageCanvasList[bodyRegionId - 1];
18   - var grayImageDataVar// = grayImageDataList[bodyRegionId - 1];
19   -
20   - console.log('canvasId =' + canvasId)
21   - //if (canvasId.match('_MR')) {
22   - // coloredImageDataVar = coloredImageMRCanvasList[bodyRegionId];
23   - // grayImageDataVar = grayImageMRDataList[bodyRegionId];
24   - //}
25   - //else {
26   - coloredImageDataVar = coloredImageCanvasList[bodyRegionId - 1];
27   - grayImageDataVar = grayImageDataList[bodyRegionId-1];
28   - //}
29   - console.log('grayImageDataVar= ' + grayImageDataVar)
30   -
31   - var counter = 0;
32   -
33   - var imageDataVar = maskData.data;
34   -
35   - var machLocationWP = new Worker('match-pixel-wp.js');
36   -
37   -
38   - machLocationWP.postMessage({
39   -
40   - 'termList': termList,
41   - 'maskCanvasData': maskData,
42   - 'coloreImageData': coloredImageDataVar,
43   - 'grayImageData': grayImageDataVar,
44   - 'grayImageMRDataList': grayImageMRDataList,
45   - 'bodyRegionId': bodyRegionId,
46   - 'canvasId': canvasId
47   -
48   - });
49   -
50   - machLocationWP.onmessage = function (e) {
51   -
52   -
53   -
54   - doneBRID.push(e.data.bodyRegionId);
55   - var canvasID = (e.data.canvasId).replace('_mci', '');
56   -
57   - UpdatedGrayImageDataList.push({ 'canvasID': canvasID, 'imageData': e.data.value });
58   -
59   - //UpdatedGrayImageDataList[e.data.bodyRegionId] = e.data.value
60   -
61   -
62   - if (doneBRID.length==9) {
63   -
64   - self.postMessage({
65   - 'value': UpdatedGrayImageDataList,
66   -
67   - })
68   - }
69   -
70   - };
71   - machLocationWP.onerror = function (e) {
72   - console.log('Error: Line ' + e.lineno + ' in ' + e.filename + ': ' + e.message);
73   - };
74   -
75   -
76   - }
77   -
78   -
79   -
80   -
81   -}
82   -
83   -self.onmessage = function (e) {
84   - getLocationForMatchedTermsInWholeBody(e.data.termList, e.data.maskCanvasData, e.data.coloredImageCanvasList,
85   - e.data.coloredImageMRCanvasList, e.data.grayImageDataList, e.data.grayImageMRDataList);
86   -
87   -}
88   -
89   -
  1 +var UpdatedGrayImageDataList = [];
  2 +var doneBRID = [];
  3 +var abc = 'hello';
  4 +
  5 +getLocationForMatchedTermsInWholeBody = function (termList, maskCanvasData, coloredImageCanvasList, coloredImageMRCanvasList, grayImageDataList, grayImageMRDataList) {
  6 + var matchedRGBLocationInBodyRegion = [];
  7 + var matched;
  8 +
  9 + for (var x = 0; x < maskCanvasData.length; x++)
  10 + {
  11 +
  12 + matched = false;
  13 + var bodyRegionId = maskCanvasData[x].bodyRegionId;
  14 + var canvasId = maskCanvasData[x].canvasId;
  15 + var maskData = maskCanvasData[x].maskData;
  16 +
  17 + var coloredImageDataVar//= coloredImageCanvasList[bodyRegionId - 1];
  18 + var grayImageDataVar// = grayImageDataList[bodyRegionId - 1];
  19 +
  20 + console.log('canvasId =' + canvasId)
  21 + //if (canvasId.match('_MR')) {
  22 + // coloredImageDataVar = coloredImageMRCanvasList[bodyRegionId];
  23 + // grayImageDataVar = grayImageMRDataList[bodyRegionId];
  24 + //}
  25 + //else {
  26 + coloredImageDataVar = coloredImageCanvasList[bodyRegionId - 1];
  27 + grayImageDataVar = grayImageDataList[bodyRegionId-1];
  28 + //}
  29 + console.log('grayImageDataVar= ' + grayImageDataVar)
  30 +
  31 + var counter = 0;
  32 +
  33 + var imageDataVar = maskData.data;
  34 +
  35 + var machLocationWP = new Worker('match-pixel-wp.js');
  36 +
  37 +
  38 + machLocationWP.postMessage({
  39 +
  40 + 'termList': termList,
  41 + 'maskCanvasData': maskData,
  42 + 'coloreImageData': coloredImageDataVar,
  43 + 'grayImageData': grayImageDataVar,
  44 + 'grayImageMRDataList': grayImageMRDataList,
  45 + 'bodyRegionId': bodyRegionId,
  46 + 'canvasId': canvasId
  47 +
  48 + });
  49 +
  50 + machLocationWP.onmessage = function (e) {
  51 +
  52 +
  53 +
  54 + doneBRID.push(e.data.bodyRegionId);
  55 + var canvasID = (e.data.canvasId).replace('_mci', '');
  56 +
  57 + UpdatedGrayImageDataList.push({ 'canvasID': canvasID, 'imageData': e.data.value });
  58 +
  59 + //UpdatedGrayImageDataList[e.data.bodyRegionId] = e.data.value
  60 +
  61 +
  62 + if (doneBRID.length==9) {
  63 +
  64 + self.postMessage({
  65 + 'value': UpdatedGrayImageDataList,
  66 +
  67 + })
  68 + }
  69 +
  70 + };
  71 + machLocationWP.onerror = function (e) {
  72 + console.log('Error: Line ' + e.lineno + ' in ' + e.filename + ': ' + e.message);
  73 + };
  74 +
  75 +
  76 + }
  77 +
  78 +
  79 +
  80 +
  81 +}
  82 +
  83 +self.onmessage = function (e) {
  84 + getLocationForMatchedTermsInWholeBody(e.data.termList, e.data.maskCanvasData, e.data.coloredImageCanvasList,
  85 + e.data.coloredImageMRCanvasList, e.data.grayImageDataList, e.data.grayImageMRDataList);
  86 +
  87 +}
  88 +
  89 +
... ...