-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tutorial improvements #57
Conversation
Fix typos Remove empty cells
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few minor comments.
@@ -164,7 +164,7 @@ | |||
"\n", | |||
"<p><img src=\"ide-autocomplete.png\"></p>\n", | |||
"\n", | |||
"Unfortunately, here in this notebook software, the autocompletion logic is not (yet!) advanced enough to fully offer such a feature—there is only rudimentary method completion support by pressing <kbd>tab</kbd>. Hence, the `NotebookService` also includes a handy method for inspecting an object's methods. Here is an example:" | |||
"Unfortunately, here in this notebook software, the autocompletion logic is not (yet!) advanced enough to fully offer such a feature—there is only rudimentary method completion support by pressing <kbd>tab</kbd>. Hence, the `NotebookService` also includes a handy method for inspecting an object's methods. Here is an example which will show the vailable ethods of a List:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/ethods/methods/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also s/vailable/available/
@@ -105,7 +105,7 @@ | |||
"source": [ | |||
"You can also call any op in an `eval` statement as a function, using familiar function syntax.\n", | |||
"\n", | |||
"Here is an example of the `eval` op being used to compute a [Difference of Gaussians](https://en.wikipedia.org/wiki/Difference_of_Gaussians):" | |||
"The following is an example of the `eval` op being used to compute a [Difference of Gaussians](https://en.wikipedia.org/wiki/Difference_of_Gaussians). Inputs within the formula may be accessed via the `Map vars?` argument of the eval function. Thereby, the key of the map corresponds to the name of the variable that can be used in the formula." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong use of "thereby", no?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"In which" might be a good substitute for the "thereby"
@@ -77,15 +77,19 @@ | |||
"\n", | |||
"//scales refers the the pixel distance at which the filter operates. Larger scales measure larger structures.\n", | |||
"//spacing refers to the physical distance between pixels. The default setting is {1, 1, 1...}\n", | |||
"#@String(label=\"spacing: e.g. \\\"1, 1, 1\\\"\",value=\"1, 1, 1\") spacing\n", | |||
"spacings = [1.0, 1.0, 1.0]\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you remove the script parameters?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was not used in the example. For the sake of the example its easier to just use a list. Also, then one can remove the parsing of the input String into a list.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the most part looks good! I just had a few wording suggestions, but after that looks good by me!
@@ -164,7 +164,7 @@ | |||
"\n", | |||
"<p><img src=\"ide-autocomplete.png\"></p>\n", | |||
"\n", | |||
"Unfortunately, here in this notebook software, the autocompletion logic is not (yet!) advanced enough to fully offer such a feature—there is only rudimentary method completion support by pressing <kbd>tab</kbd>. Hence, the `NotebookService` also includes a handy method for inspecting an object's methods. Here is an example:" | |||
"Unfortunately, here in this notebook software, the autocompletion logic is not (yet!) advanced enough to fully offer such a feature—there is only rudimentary method completion support by pressing <kbd>tab</kbd>. Hence, the `NotebookService` also includes a handy method for inspecting an object's methods. Here is an example which will show the vailable ethods of a List:" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also s/vailable/available/
@@ -656,7 +657,7 @@ | |||
"cell_type": "markdown", | |||
"metadata": {}, | |||
"source": [ | |||
"The true meat of ImageJ is [ImageJ Ops](https://imagej.net/Ops), a library for reusable image processing. An `Op` plugin is form of `Command`, and therefore a module.\n", | |||
"The true meat of ImageJ is [ImageJ Ops](https://imagej.net/Ops), a library for reusable image processing. An `Op` plugin is a form of `Command`, and therefore a module.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing as we have not yet explained what a Command
is maybe we should say something along the lines of "An Op
is a special type of Module
called a Command
(see "Modules"\ below).
@@ -105,7 +105,7 @@ | |||
"source": [ | |||
"You can also call any op in an `eval` statement as a function, using familiar function syntax.\n", | |||
"\n", | |||
"Here is an example of the `eval` op being used to compute a [Difference of Gaussians](https://en.wikipedia.org/wiki/Difference_of_Gaussians):" | |||
"The following is an example of the `eval` op being used to compute a [Difference of Gaussians](https://en.wikipedia.org/wiki/Difference_of_Gaussians). Inputs within the formula may be accessed via the `Map vars?` argument of the eval function. Thereby, the key of the map corresponds to the name of the variable that can be used in the formula." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"In which" might be a good substitute for the "thereby"
@@ -230,7 +230,8 @@ | |||
"source": [ | |||
"The `equation` op allows you to generate an image from a formula in JavaScript syntax.\n", | |||
"\n", | |||
"Such images can be useful for testing without needing an external image source, or a long and bulky list of numbers." | |||
"Such images can be useful for testing without needing an external image source, or a long and bulky list of numbers.\n", | |||
"Thereby the equation will be executed on each pixel of the image. Within the equation the current location can be retrieved via the variable `p[]` (see example equation below)." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thereby here is also a little strange. Maybe "This Op
will execute the equation on each pixel of the image" is a better sentence?
">Both, [RandomAccess](http://javadoc.imagej.net/ImgLib2/net/imglib2/RandomAccess.html) and [Cursor](http://javadoc.imagej.net/ImgLib2/net/imglib2/Cursor.html) implement the [Sampler](http://javadoc.imagej.net/ImgLib2/net/imglib2/Sampler.html) interface which allows to access pixel values. Both implement the [Localizable](http://javadoc.imagej.net/ImgLib2/net/imglib2/Localizable.html) interface which allows to retrieve the accessors current >pixel coordinates. Both inherit (through Localizable) the [EuclideanSpace](http://javadoc.imagej.net/ImgLib2/net/imglib2/EuclideanSpace.html) interval which allows to get the number of dimensions of the image.\n", | ||
"\n", | ||
">Note, that [Sampler](http://javadoc.imagej.net/ImgLib2/net/imglib2/Sampler.html), [RandomAccess](http://javadoc.imagej.net/ImgLib2/net/imglib2/RandomAccess.html), and [Cursor](http://javadoc.imagej.net/ImgLib2/net/imglib2/Cursor.html) have a type paramer **< T >** that refers to the value type of the underlying image." | ||
">Both, [RandomAccess](http://javadoc.imagej.net/ImgLib2/net/imglib2/RandomAccess.html) and [Cursor](http://javadoc.imagej.net/ImgLib2/net/imglib2/Cursor.html) implement the [Sampler](http://javadoc.imagej.net/ImgLib2/net/imglib2/Sampler.html) interface which allows to access pixel values. Both implement the [Localizable](http://javadoc.imagej.net/ImgLib2/net/imglib2/Localizable.html) interface which allows to retrieve the accessors current >pixel coordinates. Both inherit (through Localizable) the [EuclideanSpace](http://javadoc.imagej.net/ImgLib2/net/imglib2/EuclideanSpace.html) interval which allows to get the number of dimensions of the image. \n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comma after the Both is wrong, no?
"shape = new HyperSphereShape(1)\n", | ||
"dilate = ij.op().morphology().dilate(actualOutput, shape)\n", | ||
"\n", | ||
"[[\"Output: \":actualOutput, \"Dilated: \":dilate]]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want to use an Op
in a notebook dedicated to a different Op
?
Honestly I am not sure that it is worth fixing this notebook. There already exists a Frangi Vesselness notebook in the new Ops scheme (one notebook for every Op
), so this notebook will probably be deleted later on.
No description provided.