View source: R/userFunctions.R
import_process_image | R Documentation |
Import and Process a .tiff or .tif image
import_process_image( imageName, file_loc, trimAmountTop = 100, trimAmountBottom = 50, beta0 = -2.774327, beta1 = 51.91687, cutoffProbability = 0.5, NADefault = 0, FilterBright = c(13, 13), FilterNonBright = c(8, 8), methodBright = "delation", methodNonBright = "delation", thresholdBright = 0.8, thresholdNonBright = 0.5 )
imageName |
The name of the file |
file_loc |
the path from ~/ to the dir where the file is |
trimAmountTop |
Number of pixels off of top of image (usually for common flares) |
trimAmountBottom |
Number of pixels off of bottom of image |
beta0 |
The intercept of a logistic regression default is for magnetograms |
beta1 |
The slope of the logistic regression default is for magnetograms |
cutoffProbability |
The probability cut off for the decision of an imageMatrix being bright |
NADefault |
The default value set to NA's found in the matrix |
FilterBright |
Vector specifying the dimensions of the kernel, which will be used to perform either delation or erosion, such as c(13,13) |
FilterNonBright |
Vector specifying the dimensions of the kernel, which will be used to perform either delation or erosion, such as c(8,8) |
methodBright |
one of 'delation'(adds to image, making brights brighter), 'erosion' (subtracts from image brights darker) |
methodNonBright |
one of 'delation'(adds to image, making brights brighter), 'erosion' (subtracts from image brights darker) |
thresholdBright |
should be between 0 and 1 for normalized images Default = 0.8 |
thresholdNonBright |
should be between 0 and 1 for normalized images Default = 0.5 |
imageMatrix processed and trimed, in landscape orientation
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.