The Rgb2gray () function cannot be used in octave

Source: Internet
Author: User

When the image is loaded in octave and turned into grayscale, it is found that the Rgb2gray () function does not exist, the Internet searches for a bit, the StackOverflow on the relevant explanation, as follows:

The problem is so you didn ' t load your packages. When you type pkg list can find which ones is loaded by a asterisk in front of their names. Load a package with pkg load image .

Have to load a packages are that thing the most users find strange if you compare with other languages, such as Pyth On, Perl, or C + +, would you expect them to import , use , or #include every libraries available in the system by default? Seeoctave ' s FAQ for more details.


Originally octave the default state of the missing related packages, processing, signal processing aspects of the package, we need to manually install.


Go to SourceForge to download the relevant package, put it on the octave search path, and execute the installation command on the octave command line:


The Rgb2gray () function requires an image package to be installed.


Attach the relevant package on the SourceForge octave:

Packages

These packages is meant for the current versions of Octave. See the unmaintainedsection for information on older versions.

Bim

Package for solving diffusion advection Reaction (DAR) Partial differential equations

Detailsdownload

Bsltl

The BSLTL package was a free collection of octave/matlab routines for working with the Biospeckle laser technique

Detailsdownload

Cgi

Common Gatway Interface for Octave

Detailsdownload

Communications

Digital Communications, Error correcting Codes (Channel code), Source code functions, modulation and Galois fields

Detailsdownload

Control

computer-aided Control System Design (CACSD) Tools for GNU Octave, based on the proven Slicot Library

Detailsdownload

Data-smoothing

Algorithms for smoothing Noisy data

Detailsdownload

Database

Interface to SQL databases, currently only PostgreSQL using LIBPQ

Detailsdownload

Dataframe

Data manipulation Toolbox similar to R data

Detailsdownload

Dicom

Digital Communications in Medicine (DICOM) file IO

Detailsdownload

Divand

Divand performs an n-dimensional variational analysis (interpolation) of arbitrarily located observations

Detailsdownload

Doctest

The Octave-forge doctest package finds specially-formatted blocks of example code within documentation files

Detailsdownload

Econometrics

Econometrics functions including MLE and GMM based techniques

Detailsdownload

Fem-fenics

Pkg for the resolution of partial differential equations based on fenics

Detailsdownload

Financial

Monte Carlo Simulation, options pricing routines, financial manipulation, plotting functions and additional date Manipulat Ion Tools

Detailsdownload

Fits

The Octave-fits package provides functions for reading, and writing FITS (flexible Image Transport System) files

Detailsdownload

Fl-core

The package contains code for basic functions in Fuzzy Logic for Octave

Detailsdownload

Fpl

Collection of routines to export data produced by finite Elements or finite Volume simulations in formats used by some Vis Ualization Programs

Detailsdownload

Fuzzy-logic-toolkit

A mostly matlab-compatible Fuzzy Logic toolkit for Octave

Detailsdownload

Ga

Genetic optimization Code

Detailsdownload

General

General Tools for Octave

Detailsdownload

Generate_html

This is provides functions for generating HTML pages, contain the help texts for a set of functions

Detailsdownload

Geometry

Library for geometric computing extending MATGEOM functions

Detailsdownload

Image

The Octave-forge Image package provides functions for processing images

Detailsdownload

Image-acquisition

The Octave-forge Image aquisition package provides functions to capture images from connected devices

Detailsdownload

Instrument-control

Low Level I/O functions for serial, I²C, parallel, TCP, GPIB, vxi11 and USBTMC interfaces

Detailsdownload

Interval

The interval package for real-valued interval arithmetic allows one to evaluate functions over subsets of their domain

Detailsdownload

Io

Input/output in external formats.

Detailsdownload

Java

Provides Java interface with Oo-like Java objects manipulation

Detailsdownload

Level-set

Routines for calculating the time-evolution of the Level-set equation and extracting geometric information from the level- Set function

Detailsdownload

Linear-algebra

Additional linear algebra code, including general SVD and matrix functions

Detailsdownload

Lssa

A package implementing tools to compute spectral decompositions of irregularly-spaced time series

Detailsdownload

Ltfat

The Large time/frequency Analysis Toolbox (LTFAT) are a matlab/octave toolbox for working with time-frequency analysis, WAV Elets and Signal processing

Detailsdownload

Mapping

Simple mapping and GIS. SHP and Raster file functions

Detailsdownload

Mechanics

Library with functions useful for numerical computation on classical mechanics and structural analysis

Detailsdownload

Miscellaneous

Miscellaneous tools that don ' t fit somewhere else

Detailsdownload

Mpi

Octave bindings for basic Message passing Interface (MPI) functions for parallel computing

Detailsdownload

Msh

Create and manage triangular and tetrahedral meshes for finite Element or finite Volume PDE solvers

Detailsdownload

Mvn

Multivariate normal distribution clustering and utility functions

Detailsdownload

Nan

A Statistics and machine learning Toolbox for data with and w/o missing values

Detailsdownload

Ncarray

Access a single or a collection of NetCDF files as a multi-dimensional array

Detailsdownload

netCDF

A MATLAB compatible NetCDF interface for Octave

Detailsdownload

Nurbs

Collection of routines for the creation, and manipulation of Non-uniform Rational B-splines (NURBS), based on the NURBS to Olbox by Mark Spink

Detailsdownload

OCs

Package for solving DC and transient electrical circuit equations

Detailsdownload

Octcdf

A NetCDF Interface for Octave

Detailsdownload

Octclip

This is the allows to does Boolean operations with polygons using the Greiner-hormann algorithm

Detailsdownload

Octproj

This package allows to call functions of PROJ

Detailsdownload

Odepkg

A solving ordinary differential equations and more

Detailsdownload

Optics

Functions covering various aspects of optics

Detailsdownload

Optim

Non-linear Optimization Toolkit

Detailsdownload

Optiminterp

An optimal interpolation toolbox for octave

Detailsdownload

Parallel

Parallel Execution Package

Detailsdownload

Quaternion

quaternion package for GNU Octave, includes a quaternion class with overloaded operators

Detailsdownload

Queueing

The queueing package provides functions for queueing networks and Markov chains analysis

Detailsdownload

secs1d

A drift-diffusion Simulator for 1d semiconductor devices

Detailsdownload

Secs2d

A drift-diffusion Simulator for 2d Semiconductor devices

Detailsdownload

Secs3d

A drift-diffusion Simulator for 3d semiconductor devices

Detailsdownload

Signal

Signal processing tools, including filtering, windowing and display functions

Detailsdownload

Sockets

Socket functions for networking from within octave

Detailsdownload

Sparsersb

Interface to the LIBRSB package implementing the RSB sparse matrix format

Detailsdownload

Specfun

Special functions including ellipitic functions, etc

Detailsdownload

Splines

Additional spline functions

Detailsdownload

Statistics

Additional statistics functions for Octave

Detailsdownload

Stk

The STK is a (not so) Small Toolbox for Kriging

Detailsdownload

Strings

Additional functions for manipulation and analysis of strings

Detailsdownload

struct

Additional Structure manipulations functions

Detailsdownload

Symbolic

The Octave-forge symbolic package adds symbolic calculation features to GNU Octave

Detailsdownload

Tisean

Port of Tisean 3

Detailsdownload

Tsa

Stochastic concepts and maximum entropy methods for time series analysis

Detailsdownload

Video

A wrapper for FFmpeg ' s Libavformat and Libavcodec, implementing Addframe, Avifile, Aviinfo and Aviread

Detailsdownload

Vrml

3D Graphics using VRML

Detailsdownload

Windows

Provides COM interface and additional functionality on Windows

Detailsdownload

Zeromq

ZeroMQ Bindings for GNU Octave

Detailsdownload

Renamed or moved Packages

Some packages has been renamed or merged over time. When Thishappens, the a dummy transitional package is created--the empty anddependent on the IT new package. After some time, those is removedas well. The following is a list of such packages:

    • Combinatorics-merged into miscellaneous and Specfun
    • Openmpi_ext-renamed MPI.
    • Physicalconstants-merged into miscellaneous.
    • Time-merged into Financial.
unmaintained Packages

The Octave Forge project is a location to develop multiple packages for gnuoctave. With time, some packages become unmaintained, usually because the Originalauthor no longer requires it and no one steps up To take the its position. Without amaintainer or active user base, and as Octave evolves, we don't know how usablethey is, so we can no longer hon Estly recommend their use.

They is still stored and release tarballs can be downloaded from Ourfile release System (same for the very oldmonolithic R eleases). However, many of them has accumulated bug fixes and new features in Themercurial orsvnrepositories, it simply happens tha T maintainer has prepared a release. Because of this, we encourage users to check the development sources, not the releasedtarballs. Furthermore,bug reports for those packagescontinue to being welcome, and anyone wishing to take up the position of maintainer , please contactus through themaintainers mailing list.

The complete list of unmaintained packages is:

    • Actuarial
    • Ad
    • Ann
    • Audio
    • Benchmark
    • Bioinfo
    • Civil-engineering
    • Engine
    • Fenv
    • Gnuplot
    • Es.
    • Informationtheory
    • Integration
    • Irsa
    • Missing-functions
    • Multicore
    • Nlwing2
    • Nnet
    • Oct2mat
    • Octgpr
    • Odebvp
    • Outliers
    • Pdb
    • Plot
    • Simp
    • Special-matrix
    • Symband
    • Tcl-octave
    • Xraylib
    • Zenity


Reference:

[1]:http://octave.sourceforge.net/

[2]:http://octave.sourceforge.net/packages.php

The Rgb2gray () function cannot be used in octave

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.