【error】pixval on

PIXVAL is obsolete and has been removed.
IMPIXELINFO is its recommended replacement for pixel reporting.
IMDISTLINE is its recommended replacement for measuring distance.

pixval 

Display information about image pixels

  • pixval on turns on interactive display of information about image pixels in the current figure.
  • pixval installs a black bar at the bottom of the figure, which displays the (x,y) coordinates for whatever pixel the cursor is currently over, and the color information for that pixel. If the image is binary or intensity, the color information is a single intensity value. If the image is indexed or RGB, the color information is an RGB triplet. The values displayed are the actual data values, regardless of the class of the image array, or whether the data is in normal image range.

在matlab7.60 版本

>> pixval on
Warning: PIXVAL is obsolete.
IMPIXELINFO is its recommended replacement for pixel reporting.
IMDISTLINE is its recommended replacement for measuring distance.
> In pixval at 89

In pixval at 73
在7.11 版本

>> pixval on
??? Error using ==> pixval at 10
PIXVAL is obsolete and has been removed.
IMPIXELINFO is its recommended replacement for pixel reporting.
IMDISTLINE is its recommended replacement for measuring distance.

Solution
pixel改为 impixelinfo

impixel 

Determine pixel color values

h = imshow('hestain.png');
hp = impixelinfo;
set(hp,'Position',[150 290 300 20]);

IMPIXELINFO.jpg

显示图像后,直接在命令窗口输入impixelinfo敲回车(可以实时显示鼠标所在位置的坐标和像素值).

IMPIXELINFO does not find your GUI automtically as the handle is hidden. IMPIXELINFO(H) creates a pixel information tool in the figure specified by the handle H, where H is an image, axes, uipanel, or figure object. Axes, uipanel, or figure objects must contain at least one image object.

1. ginput

[x,y] = ginput(n),n为你想选的点的个数,鼠标点的那些点的横坐标和纵坐标就会保存到[x,y]中或者直接输入ginput,最后以回车结尾
2. impixelinfo(更为方便)
显示图像后,直接在命令窗口输入impixelinfo敲回车(可以实时显示鼠标所在位置的坐标和像素值
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

生活在西班牙

自己动手丰衣足食

BlueAsteroid

Just another WordPress.com site

Jing's Blog

Just another WordPress.com site

Start from here......

我的心情魔方

天才遠私廚

希望能做一個分享各種資訊的好地方

语义噪声

西瓜大丸子汤的博客

笑对人生,傲立寰宇

Just another WordPress.com site

Where On Earth Is Waldo?

A Project By Melanie Coles

the Serious Computer Vision Blog

A blog about computer vision and serious stuff

Cauthy's Blog

paper review...

Cornell Computer Vision Seminar Blog

Blog for CS 7670 - Special Topics in Computer Vision

datarazzi

Life through nerd-colored glasses

Luciana Haill

Brainwaves Augmenting Consciousness

槑烎

1,2,∞

Dr Paul Tennent

and the university of nottingham

turn off the lights, please

A bunch of random, thinned and stateless thoughts around the Web

%d bloggers like this: