Skip to content
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

Closed
wants to merge 5 commits into from
Closed

Conversation

Treiblesschorle
Copy link
Contributor

No description provided.

Copy link
Member

@imagejan imagejan left a 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:"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/ethods/methods/

Copy link
Contributor

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."
Copy link
Member

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?

Copy link
Contributor

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",
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Contributor

@gselzer gselzer left a 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:"
Copy link
Contributor

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",
Copy link
Contributor

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."
Copy link
Contributor

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)."
Copy link
Contributor

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",
Copy link
Contributor

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]]"
Copy link
Contributor

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.

@ctrueden ctrueden added the to do label Oct 3, 2018
@ctrueden ctrueden self-assigned this Oct 3, 2018
@ctrueden ctrueden closed this in c787644 Feb 25, 2019
@ctrueden ctrueden deleted the tutorial_improvements branch February 25, 2019 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants