Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
leverjs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenSource
leverjs
Commits
3d51145d
Commit
3d51145d
authored
May 20, 2020
by
ac32
Browse files
Options
Downloads
Patches
Plain Diff
LoG areaopen at 2*radius, check deployed on ljsPath
parent
9067871a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
matlab/+Segment/thresholdImages.m
+1
-1
1 addition, 1 deletion
matlab/+Segment/thresholdImages.m
matlab/getLeverjsPath.m
+12
-4
12 additions, 4 deletions
matlab/getLeverjsPath.m
matlab/ljsLog.m
+8
-6
8 additions, 6 deletions
matlab/ljsLog.m
matlab/matlabPollDB.m
+2
-0
2 additions, 0 deletions
matlab/matlabPollDB.m
with
23 additions
and
11 deletions
matlab/+Segment/thresholdImages.m
+
1
−
1
View file @
3d51145d
...
...
@@ -30,7 +30,7 @@ end
nsz
=
4
*
floor
(
size
(
im
)/
16
)
+
1
;
T
=
adaptthresh
(
imLog
,
0.5
,
'NeighborhoodSize'
,
nsz
,
'statistic'
,
'gaussian'
);
bwLog
=
imbinarize
(
imLog
,
T
);
bwLog
=
Segment
.
aiAreaOpen
(
bwLog
,
min_radius_pixels
);
bwLog
=
Segment
.
aiAreaOpen
(
bwLog
,
2
*
min_radius_pixels
);
nsz
=
4
*
floor
(
size
(
im
)/
16
)
+
1
;
T
=
adaptthresh
(
im
,
sensitivity
,
'NeighborhoodSize'
,
nsz
,
'statistic'
,
'gaussian'
);
...
...
This diff is collapsed.
Click to expand it.
matlab/getLeverjsPath.m
+
12
−
4
View file @
3d51145d
function ljsPath=getLeverjsPath(file)
if isdeployed()
thisFolder=fullfile(pwd(),'matlab');
else
thisFile=mfilename('fullpath');
[thisFolder,~,~]=fileparts(thisFile);
end
ljsPath=fullfile(thisFolder,'..','leverjs',file);
if ~exist(ljsPath,'file')
ljsPath=fullfile(thisFolder,'..',file);
end
if ~exist(ljsPath,'file')
fprintf(2,'getLeverjsPath:: could not locate %s\n',file);
ljsPath=fullfile(thisFolder,file);
end
if ~exist(ljsPath,'file')
fprintf(2,'getLeverjsPath:: could not locate file in %s in folder %s\n',file,thisFolder);
ljsPath=[];
end
This diff is collapsed.
Click to expand it.
matlab/ljsLog.m
+
8
−
6
View file @
3d51145d
...
...
@@ -15,6 +15,7 @@ if isempty(timerVal) || isempty(configLevel) || elapsedTime>10
configLevel
=
1
;
if
~
isempty
(
fname
)
fid
=
fopen
(
fname
,
'r'
);
if
fid
~=-
1
jsConfig
=
fscanf
(
fid
,
'%s\n'
);
fclose
(
fid
);
jsConfigLevel
=
regexp
(
jsConfig
,
'logLevel=\d*[^;]'
,
'match'
);
...
...
@@ -23,6 +24,7 @@ if isempty(timerVal) || isempty(configLevel) || elapsedTime>10
end
end
end
end
timerVal
=
tic
();
if
level
<=
configLevel
fprintf
(
1
,
'%s\n'
,
text
);
...
...
This diff is collapsed.
Click to expand it.
matlab/matlabPollDB.m
+
2
−
0
View file @
3d51145d
...
...
@@ -13,6 +13,8 @@ fprintf(1,'matlabPollDB pid=%d\n',pid);
AddSQLiteToPath
();
hipCheckSetRegistry
();
ljsLog
(['
matlabPollDB::
HIP
mutex
from
OS:
'
getenv
('
HYDRA_ENABLE_MUTEX
')],1);
warning
('
off
','
all
');
if
nargin
>
1
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment