Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Quack
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
commul
Zeit.shift
Quack
Commits
5850674d
Commit
5850674d
authored
11 years ago
by
Toke Eskildsen
Browse files
Options
Downloads
Patches
Plain Diff
Bugfix: The unique greyscales and the percentages was sometimes doubled
parent
b63917b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
analyze.sh
+3
-3
3 additions, 3 deletions
analyze.sh
with
3 additions
and
3 deletions
analyze.sh
+
3
−
3
View file @
5850674d
...
...
@@ -17,7 +17,7 @@ ASSUME_GREY=true
# Output: The name of the identity file
function
im_identify
()
{
local
SRC
=
"
$1
"
local
IDENTIFY
=
${
SRC
%%.*
}
.identify
if
[
-f
"
$IDENTIFY
"
]
;
then
echo
"
$IDENTIFY
"
...
...
@@ -52,8 +52,8 @@ function grey_stats() {
local
GREY
=
${
SRC
%%.*
}
.grey
local
INFO
=
`
cat
"
$IDENTIFY
"
`
# TODO: No good as large images does not produce a Colormap
#
local VALUES=`cat "$IDENTIFY" | grep -
B 1000 Colormap
`
local
VALUES
=
"
$INFO
"
local
VALUES
=
`
cat
"
$IDENTIFY
"
|
grep
-
A
256 Histogram
`
#
local VALUES="$INFO"
local
SAVEIFS
=
$IFS
IFS
=
$(
echo
-en
"
\n
"
)
...
...
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