1 | // triples are (332 index, range (pixel count), weight) |
2 | static double imageAnalysis_332parameterScore(LT3<Int, FourPointsRange, Double> parameters, RGBImage img) { |
3 | int[] histogram = histogram332_array(img); |
4 | double score = 0; |
5 | for (T3<Int, FourPointsRange, Double> t : parameters) |
6 | score += t.c*fourPointRangeScore(t.b, histogram[t.a]); |
7 | ret score; |
8 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1022913 |
Snippet name: | imageAnalysis_332parameterScore |
Eternal ID of this version: | #1022913/3 |
Text MD5: | b429577ce14c127abe4804a7bb00c53d |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-04-14 21:23:11 |
Source code size: | 365 bytes / 8 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 303 / 322 |
Version history: | 2 change(s) |
Referenced in: | [show references] |