This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ij import IJ | |
from ij.plugin.frame import RoiManager | |
from ij.gui import PolygonRoi | |
from ij.gui import Roi | |
from java.awt import FileDialog | |
fd = FileDialog(IJ.getInstance(), "Open", FileDialog.LOAD) | |
fd.show() | |
file_name = fd.getDirectory() + fd.getFile() | |
print(file_name) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from PIL import Image | |
import os | |
outputDir = 'C:/Users/jeremy/documents' | |
mask_uri = 'https://api.labelbox.com/masks/ck2kj00v272qb07942zpfnr35/ck2kiwbnpdzxi0721bw39f94w/ck2kixnnzy29j0er0dudq7do8/0?feature=ck2kja3ga06ym0r5lplob5v2c&token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiJjazJraXdibnBkenhpMDcyMWJ3MzlmOTR3Iiwib3JnYW5pemF0aW9uSWQiOiJjazJraXdibjVkenhjMDcyMXV6azl3YzNzIiwiaWF0IjoxNTcyODc4NzY3LCJleHAiOjE1NzU0NzA3Njd9.Q5NCer5F8LV300tEH5yXTwJh5fYOpwWaf2kN3SIU-k0' | |
response = requests.get(mask_uri, stream=True, timeout=10.0) | |
response.raw.decode_content = True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* The function performs an arbitrary affine transform for an arbitrary | |
* number of dimensions. The resulting view is automatically bounded | |
* | |
* @param image | |
* input image | |
* @param affine | |
* defines the transformation | |
* @param interpolator | |
* defines the type of interpolation |