Code Monkey home page Code Monkey logo

microwear's Introduction

MicroWeaR

MicroWeaR package provides the user with a summary statistic of the sampled scars that can be exported in different formats. MicroWeaR includes functions to sample the scars, classify features as pits or scratches and then into consider also their respective subcategories, generate an output table with summary information, and obtain a visual surface-map in where scars are tracked. To install the Development version (beta) of MicroWeaR R-package from Github using devtools:

install.packages("devtools")
devtools::install_github("MicroWeaR/MicroWeaR",local=FALSE)

If running the previous lines the MicroWeaR installing fails, try this code:

install.packages("devtools")
library("devtools")
install.packages("zoom")
library(zoom)
install.packages("RANN")
library(RANN)
install_github("MicroWeaR/MicroWeaR",local=FALSE)
library(MicroWeaR)

MicroWeaR mailing list: https://groups.google.com/forum/#!forum/microwear

Subscription: https://groups.google.com/forum/#!forum/microwear/join

microwear's People

Contributors

microwear avatar

Watchers

 avatar

microwear's Issues

Distorted image

Hi Antonio,

I am still having a bit of trouble with the package and wondering if you can help. I am able to get the package running in R but when the image comes up i see three windows with the same image and it is quite distorted. See the attached image. Do you have any suggestions?
2018-11-21

Can't upload image

Hi,
I am having trouble uploading my own picture using class.Ico
class.Ico(file.path("D:","MicroWeaR-master", "test"),image.type = c("tiff"))
After that I get this error message:
Erron in readTIFF(path, native = F) :
unable to open D:/MicroWeaR-master/test
I tried converting my image into png and jpg but I got the same error, only in readPNG and readJPG

Issue - cross.parallel function

Hello,
I´m having problem with the cross.parellel function. When I use the function I receive this error ->

Error in if ((min(dist_A, dist_B) < ((image.ico$area * 2) * 2)) == FALSE) { :
the condition has length > 1

This is the code I am using, I tried to follow the article + the video for support on youtube.

H1_f1 <- class.Ico("H1_f1.jpg", image.type = "jpg")
plot_Ico(image.ico = H1_f1)
scaled_H1_f1 <- scale_Ico(image.ico = H1_f1)
warea_H1_f1 <- Warea.Ico(image.ico = scaled_H1_f1)
sampling_H1_f1 <- samp.traces(image.ico = warea_H1_f1)
class_H1_f1 <- autom_class(big_matrix=sampling_H1_f1, image.ico = warea_H1_f1$image)
class_cross_H1_f1 <- cross.parallel(big_matrix = sampling_H1_f1, image.ico = warea_H1_f1$image, Type = class_H1_f1$Type)
#Error in if ((min(dist_A, dist_B) < ((image.ico$area * 2) * 2)) == FALSE) { :
the condition has length > 1

And I don´t know how to fix it, this is the first time using this package and I don´t use R much in general
I dowloaded the package this week (6.5.2024) so i suppose that the update on this function should be implement in the package? And if not, how am I supposed to do it?

Thank you very much for help

Issue with cross.parallel function

Hi
I'm having issues with the cross.parallel function and thus can't use the output.Ico function either.
I'm still new to coding so I would really appreciate any help. I've tried to maintain a very similar syntax as what is showed in the Strani et al 2018 paper.

My code for this function is as follows :
image3 <- class.Ico("R/F-9c_3D_x1.tiff",image.type = "tiff")
sca_im3 <- scale_Ico(image.ico = image3)
warea3<- Warea.Ico(image.ico = sca_im3, sizes = c(1000))
Traces3 <- samp.traces(image.ico = warea3)
class3 <-autom_class(Traces3, warea3$image)
scratches.ana3<- cross.parallel(big_matrix = Traces3,image.ico = warea3$image,Type=class$Type)

I've also tried multiples syntax changes to no avail. I keep getting the same error message: Error in class$Type : object of type 'builtin' is not subsettable.

Thanks for your help

Fails to install

devtools::install_github("MicroWeaR/MicroWeaR",local=FALSE)
Error in read.dcf(path) :
Found continuation line starting ' 2.5.1), zoom ...' at begin of record.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.