analysis_discCup
Optic nerve disc and cup image
Endpoint that allows to obtain an image representing the segmentation of the optic nerve disc and the optic nerve cup.
/analysis/discCup
Usage and SDK Samples
curl -X GET\
-H "Accept: image/png"\
"https://laguna.insoft.es/api/analysis/discCup?client=&token=&id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.AnalysisApi;
import java.io.File;
import java.util.*;
public class AnalysisApiExample {
public static void main(String[] args) {
AnalysisApi apiInstance = new AnalysisApi();
String client = client_example; // String | username for authentication
String token = token_example; // String | token for authentication
Integer id = 56; // Integer | ID of the analysis
try {
byte[] result = apiInstance.analysis_discCup(client, token, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalysisApi#analysis_discCup");
e.printStackTrace();
}
}
}
import io.swagger.client.api.AnalysisApi;
public class AnalysisApiExample {
public static void main(String[] args) {
AnalysisApi apiInstance = new AnalysisApi();
String client = client_example; // String | username for authentication
String token = token_example; // String | token for authentication
Integer id = 56; // Integer | ID of the analysis
try {
byte[] result = apiInstance.analysis_discCup(client, token, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AnalysisApi#analysis_discCup");
e.printStackTrace();
}
}
}
String *client = client_example; // username for authentication
String *token = token_example; // token for authentication
Integer *id = 56; // ID of the analysis
AnalysisApi *apiInstance = [[AnalysisApi alloc] init];
// Optic nerve disc and cup image
[apiInstance analysis_discCupWith:client
token:token
id:id
completionHandler: ^(byte[] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var LagunaONhEApi = require('laguna_o_nh_e_api');
var api = new LagunaONhEApi.AnalysisApi()
var client = client_example; // username for authentication
var token = token_example; // token for authentication
var id = 56; // ID of the analysis
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.analysis_discCup(client, token, id, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class analysis_discCupExample
{
public void main()
{
var apiInstance = new AnalysisApi();
var client = client_example; // String | username for authentication
var token = token_example; // String | token for authentication
var id = 56; // Integer | ID of the analysis
try
{
// Optic nerve disc and cup image
byte[] result = apiInstance.analysis_discCup(client, token, id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling AnalysisApi.analysis_discCup: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$api_instance = new Swagger\Client\ApiAnalysisApi();
$client = client_example; // String | username for authentication
$token = token_example; // String | token for authentication
$id = 56; // Integer | ID of the analysis
try {
$result = $api_instance->analysis_discCup($client, $token, $id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AnalysisApi->analysis_discCup: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::AnalysisApi;
my $api_instance = WWW::SwaggerClient::AnalysisApi->new();
my $client = client_example; # String | username for authentication
my $token = token_example; # String | token for authentication
my $id = 56; # Integer | ID of the analysis
eval {
my $result = $api_instance->analysis_discCup(client => $client, token => $token, id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AnalysisApi->analysis_discCup: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = swagger_client.AnalysisApi()
client = client_example # String | username for authentication
token = token_example # String | token for authentication
id = 56 # Integer | ID of the analysis
try:
# Optic nerve disc and cup image
api_response = api_instance.analysis_disc_cup(client, token, id)
pprint(api_response)
except ApiException as e:
print("Exception when calling AnalysisApi->analysis_discCup: %s\n" % e)
Parameters
Name | Description |
---|---|
client* |
String
username for authentication
Required
|
token* |
String
token for authentication
Required
|
id* |
Integer
ID of the analysis
Required
|