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
054c3d75
Commit
054c3d75
authored
11 years ago
by
Toke Eskildsen
Browse files
Options
Downloads
Patches
Plain Diff
Added comments to the greyscale scripts
parent
05f6e29b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
greyscale_report.sh
+23
-0
23 additions, 0 deletions
greyscale_report.sh
greyscale_stats.sh
+9
-0
9 additions, 0 deletions
greyscale_stats.sh
with
32 additions
and
0 deletions
greyscale_report.sh
+
23
−
0
View file @
054c3d75
#!/bin/bash
#
# Fully independent from the quack.sh script.
#
# Generates a report of outputs from greyscale_stats.sh.
# Lists the images with the most absolute white and absolute black pixels.
# Lists the number of unique greyscale values in the images.
#
# Usage
# * Generate a log from a collection of images with
# find myimages/ -name "*.tif" -exec ./greyscale_stats.sh {} \; > myimages.log
# * Generate a report with
# ./greyscale_report.sh myimages.log
#
# Optional usage
# * Ignore 5% of the outer edges of the images when calculating stats by only
# analyzing the inner 90% of the images.
# find myimages/ -name "*.tif" -exec ./greyscale_stats.sh {} 90 \; > myimages.log
# * Generate a report suitable for displaying in a browser
# ./greyscale_report.sh myimages.log html
#
# TODO: This should definitely be configurable in an external file ala quack.sh
TOPX
=
20
WEBROOT
=
"http://pc254.sb.statsbiblioteket.dk/quack/tilbud2/"
...
...
This diff is collapsed.
Click to expand it.
greyscale_stats.sh
+
9
−
0
View file @
054c3d75
#!/bin/bash
#
# Simple statistical analysis of greyscale images.
# Extracts key stats for darkest and brightest intensity, intended
# for use with greyscale_report.sh
#
# Requirements
# * ImageMagick
#
# Input: A greyscale image
# Output: Name pixel_count unique_greyscales #darkest_pixels darkest_pixels_percent darkest_greyscale #brightest_pixels brightest_pixels_percent lightest_greyscale
...
...
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